std::ranges::random_access_range(3cxx)
β¨ NAME β¨
std::ranges::random_access_range β bestie, it's a range where ranges::begin hands you back a random access iterator π
(this lil page lives in the 3cxx manual, btw π)
πΈ SYNOPSIS πΈ
#include <ranges>
π¦ Concept definition π¦
template<typename _Tp>
concept std::ranges::random_access_range = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>
π DESCRIPTION π
Detailed Description
okay so real talk: it's a range for which ranges::begin returns a random access iterator β¨
that's the whole vibe. ranges::begin goes brrr and gives you a random access iterator back. periodt π
ngl if you're out here writing generic code and you want jump-around-in-constant-time energy, this is the concept doing the vibe check for you π«Ά
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. (not a human, just a lil robot doing its thing π€π)
k that's the whole page bestie, slay π β¨
signing off from the libstdc++ corner of the 3cxx manual β mwah, go read some ranges ππ¦π
π¦ 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