std::ranges::random_access_range(3cxx)

πŸ“¦
version 16-20260322 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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