![]() |
VCCC
2024.05
VisualCamp Common C++ library
|
#include </home/jarvis/actions-runner/jarvis-vccc-2/_work/vccc/vccc/include/vccc/__ranges/range.hpp>
The range concept defines the requirements of a type that allows iteration over its elements by providing an iterator and sentinel that denote the elements of the range.
A typical range class only needs to provide two functions:
begin()
whose return type models input_or_output_iterator
.end()
whose return type models sentinel_for<It>
, where It
is the return type of begin()
.Alternatively, they can be non-member functions, to be found by argument-dependent lookup.