libstdc++: std::ranges::contiguous_range Concept Reference

libstdc++

std::ranges::contiguous_range Concept Reference

`#include <ranges_base.h>`

## Concept definition

template<typename _Tp>
concept std::ranges::contiguous_range = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>>
&& requires(_Tp& __t)
{
{ ranges::data(__t) } -> same_as<add_pointer_t<range_reference_t<_Tp>>>;
}
std::same_as
[concept.same], concept same_as
Definition concepts:65
std::ranges::random_access_range
A range for which ranges::begin returns a random access iterator.
Definition ranges_base.h:614
std::ranges::contiguous_range
A range for which ranges::begin returns a contiguous iterator.
Definition ranges_base.h:619

## Detailed Description

A range for which ranges::begin returns a contiguous iterator.

Definition at line 618 of file ranges_base.h.