std::experimental::ranges::Writable

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
Writable
Indirect callable concepts
                                                  
                                                  
                                                  
Common algorithm requirements
                                                  
Range concepts
Concept utilities
Iterator utilities and operations
Iterator traits
Iterator adaptors
Stream iterators
Range access
Range primitives
 
template <class Out, class T>

concept bool Writable() {
    return ranges::Semiregular<Out>()
        && requires(Out o, T&& t) {
               *o = std::forward<T>(t); /* not required to be equality preserving */
           };

}
(ranges TS)