std::experimental::ranges::SizedRange

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
                                                  
Range concepts
SizedRange
Concept utilities
Iterator utilities and operations
Iterator traits
Iterator adaptors
Stream iterators
Range access
Range primitives
 
template <class T>

concept bool SizedRange() {
    return ranges::Range<T>()
        && !ranges::disable_sized_range<std::remove_cv_t<std::remove_reference_t<T>>>
        && requires(const std::remove_reference_t<T>& t) {
               { ranges::size(t) }
                   -> ranges::ConvertibleTo<ranges::difference_type_t<ranges::iterator_t<T>>>;
           };

}
(ranges TS)