template<class T>
concept common_range =
ranges::range<T> && std::same_as<ranges::iterator_t<T>, ranges::sentinel_t<T>>; |
|
|
| | |
The common_range concept is a refinement of range for which ranges::begin and ranges::end return the same type (e.g. all standard library containers).