std::experi...::operator++(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ std::experi...::operator++(3) ✨

okay bestie, welcome to the std::experi...::operator++(3) page from the C++ Standard Libary manual β€” yes, that's the manual name, and we're keeping it exactly as printed πŸ’€. This one is about the increment operators on std::experimental::ostream_joiner, and it's short, sweet, and lowkey iconic.


🌸 NAME 🌸

std::experimental::ostream_joiner::operator++ - std::experimental::ostream_joiner::operator++

no cap, that's the whole name bestie 🫢

✨ Synopsis ✨

Two overloads, both tagged (library fundamentals TS v2), both noexcept:

ostream_joiner& operator++() noexcept;       (library fundamentals TS v2)
ostream_joiner& operator++( int ) noexcept;  (library fundamentals TS v2)

Okay so what do they actually do? literally nothing. The page says it straight up: does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying stream. it's giving β€œincrement? never heard of her” πŸ’…

πŸ’… Parameters πŸ’…

(none) β€” zero parameters, not a single one, nada. πŸ’–

πŸŽ€ Return value πŸŽ€

*this β€” that's the return value, periodt. it just hands you back *this and minds its own business. 🌸


mwah πŸ’‹ this little page was brought to you by http://cppreference.com, dated 2024.06.10, and filed under std::experi...::operator++(3). bye bestie, go slay some output iterators! 🫢✨

πŸ“¦ where this page comes from