std::ranges::output_range(3)

πŸ“¦
version 2024.07.05 Β· 3 versions
, in nixpkgs unstable, opensuse-leap 16.0

okay bestie, welcome to the std::ranges::output_range(3) page from the C++ Standard Libary manual β€” she's short, she's cute, she's a concept, and we're gonna get through her together πŸ’–βœ¨

πŸ’– NAME πŸ’–

std::ranges::output_range β€” that's the name twice because the page title is the concept and the concept is the page title. Self-titled main character energy, honestly πŸ‘‘

✨ Synopsis ✨

Here's the declaration tea, copied with love and zero edits:

          Defined in header <ranges>
          template<class R, class T>

            concept output_range =
       (since C++20)

              ranges::range<R> && std::output_iterator<ranges::iterator_t<R>,
          T>;

Now the vibe check: the output_range concept is a refinement of range for which ranges::begin returns a model of output_iterator. That's it. That's the whole concept. No cap, no extra lore πŸ¦‹πŸ”₯

mwah πŸ’‹ source: http://cppreference.com β€’ version/date marker: 2024.06.10 β€’ page: std::ranges::output_range(3) πŸŽ€

πŸ“¦ where this page comes from