std::ranges::range(3cxx)
π std::ranges::range π
okay bestie, welcome to the std::ranges::range page, straight out of the 3cxx manual (that's the C++ manpage section, iykyk) β¨
πΈ NAME πΈ
std::ranges::range β [range.range] the range concept. that's it, that's the whole vibe. she's a concept, not a class, and she's iconic for it π
π¦ SYNOPSIS π¦
first things first, you gotta bring her in:
#include <ranges>
π Concept definition π
here's the whole girl, verbatim, no notes:
template<typename _Tp>
concept std::ranges::range = requires(_Tp& __t)
{
ranges::begin(__t);
ranges::end(__t);
}
so like. a type _Tp is a range if β given an lvalue ref __t to it β ranges::begin(__t) and ranges::end(__t) both work. that's the vibe check. if you can begin it and you can end it, congrats, you're a range π«Άβ¨
π Detailed Description π
[range.range] The range concept. periodt. no cap, that's genuinely the description β she's a concept, she doesn't need a whole essay, she lets the requires-clause do the talking ππ
fr fr: this is a concept, so you can't instantiate it, you can only ask "is this a range?" and get a yes or a no. no runtime, all compile time, main character energy only.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so like, not a human, not a bestie, just doxygen doing doxygen things ππ (we still appreciate her though)
π SEE ALSO π
nope, nothing here bestie β no cross-refs on this one. it's giving minimal. it's giving "I am the reference" π
and that's the whole page, you ate that π
this lil masterpiece comes to you from libstdc++, living in the std::ranges::range(3cxx) section of your friendly neighbourhood manpages. go read some ranges, ily, bye ππ§ββοΈ
π¦ where this page comes from
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms