std::experimental::ranges::IndirectlySwappable

From cppreference.com
< cpp‎ | experimental‎ | ranges
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
Iterators library
Iterator concepts
Indirect callable concepts
                                                  
                                                  
                                                  
Common algorithm requirements
                                                  
IndirectlySwappable

Range concepts
Concept utilities
Iterator utilities and operations
Iterator traits
Iterator adaptors
Stream iterators
Range access
Range primitives
 
template <class I1, class I2 = I1>

concept bool IndirectlySwappable() {
    return ranges::Readable<I1>() && ranges::Readable<I2>()
        && requires(const I1 i1, const I2 i2) {
               ranges::iter_swap(i1, i2);
               ranges::iter_swap(i2, i1);
               ranges::iter_swap(i1, i1);
               ranges::iter_swap(i2, i2);
           };

}
(ranges TS)