std::ranges::output_range(3cxx)

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

✨ NAME ✨

std::ranges::output_range β€” bestie, it's a range where ranges::begin hands you back an output iterator. that's the whole vibe πŸ’…

okay so real quick, this page lives in the cxx manual, straight out of libstdc++, and it's about one single concept. one. concept. and she ate. πŸŽ€


🌸 SYNOPSIS 🌸

first things first, you gotta pull her in:

#include <ranges>

πŸ¦‹ Concept definition πŸ¦‹

here's the actual definition, character for character, no notes:

template<typename _Range, typename _Tp>
concept std::ranges::output_range =  range<_Range> && output_iterator<iterator_t<_Range>, _Tp>

look at her. so clean. so iconic. ✨


πŸ’– Detailed Description πŸ’–

A range for which ranges::begin returns an output iterator.

that's it. that's the girl. no cap. 🫢

ngl the way this works is: you got a range, and when you call ranges::begin on it, what comes back is an output iterator. so it's a range you can write into β€” you're not reading from it, you're outputting to it. it's giving canvas, not gallery. πŸ”₯


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

(so like, a robot wrote this, not a person, and honestly? she did great. no further questions. πŸ’€)


and that's the page, bestie!! πŸ’œ this was the std::ranges::output_range(3cxx) manpage, brought to you by libstdc++ β€” mwah, go write to some iterators, you absolute main character. πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from