std::ranges::sized_range(3cxx)
β¨ std::ranges::sized_range β¨
okay so bestie, welcome to the 3cxx manual page for std::ranges::sized_range π this is the libstdc++ corner of the C++ docs, so you know it's giving β¨standard library realnessβ¨.
πΈ NAME πΈ
std::ranges::sized_range β [range.sized] the sized_range concept, and yes she's a concept, not a class, not a vibe, a concept π
π SYNOPSIS π
First things first, you gotta bring her in:
#include <ranges>
Then, the concept definition itself, no cap:
template<typename _Tp>
concept std::ranges::sized_range = range<_Tp>
&& requires(_Tp& __t) { ranges::size(__t); }
look at her π¦ she's literally just a range<_Tp> that also has to survive a requires clause calling ranges::size(__t) on a _Tp& β if that expression checks out, she's in her main character era, if not, she's not a sized_range, periodt.
π Detailed Description π
[range.sized] the sized_range concept. π that's the whole thing bestie, that's the section. short, sweet, iconic, ate. π
lowkey the [range.sized] tag is the citation for where this lives in the standard, so if anyone asks, iykyk π«Ά
π¦ Author π¦
generated automatically by Doxygen for libstdc++ straight from the source code π not a human author, just doxygen doing its little thing, obsessed honestly β¨
and that's the page! this whole thing came to you courtesy of libstdc++ π (that's the source/version, mwah) β bye bestie, go make something that has a size() ππ§
π¦ 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