Namespaces
Variants
Views
Actions

std::ranges::random_access_range

From cppreference.com
< cpp‎ | ranges
Revision as of 13:12, 18 December 2021 by Space Mission (Talk | contribs)

 
 
Ranges library
Range adaptors
 
Defined in header <ranges>
template< class T >

  concept random_access_range =

    ranges::bidirectional_range<T> && std::random_access_iterator<ranges::iterator_t<T>>;
(since C++20)

The random_access_range concept is a refinement of range for which ranges::begin returns a model of random_access_iterator.