Namespaces
Variants
Views
Actions

std::ranges::common_range

From cppreference.com
< cpp‎ | ranges
 
 
 
Defined in header <ranges>
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 std::ranges::begin() and std::ranges::end() return the same type (e.g. all standard library containers).