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

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

πŸ’… NAME πŸ’…

okay so welcome to std::ostrea...::operator++(3), bestie β€” that's the (3) manual page from the C++ Standard Libary (yes, Libary, that's literally how it's spelled in the header, no cap πŸ™ˆ). The full name is std::ostream_iterator::operator++, and the description is also std::ostream_iterator::operator++. It's giving "same thing, twice, because why not" energy ✨.


πŸ¦‹ Synopsis πŸ¦‹

ostream_iterator& operator++();
ostream_iterator& operator++( int );

These two? They do nothing. Absolutely nothing. Zero. Nada. πŸ’€

They exist to satisfy the requirements of LegacyOutputIterator. That's the whole gig. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying stream. Slay, honestly πŸ‘‘.


πŸŽ€ Parameters πŸŽ€

(none) β€” literally no parameters, not even one. 🫢


πŸ”₯ Return value πŸ”₯

*this β€” that's it, that's the return value. periodt. πŸ’–


mwah πŸ“ this iconic little page comes from http://cppreference.com, with footer source/version and date 2024.06.10 β€” byeee bestie, go insert some values into a stream responsibly πŸŒˆπŸ’…

πŸ“¦ where this page comes from