Concepts in the <ranges> Header

Get an overview of the concepts in the <ranges> header shipped with the C++ standard library.

What’s in the <ranges> header?

In the <ranges> header, we’ll find concepts that describe the requirements on different types of ranges.

Let’s suppose that a parameter of a function is a range. But we can assert for any kind of range, like input_range, output_range, forward_range, etc.

Let’s have a look at the following range: std::ranges::borrowed_range.

Get hands-on with 1200+ tech skills courses.