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

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

πŸ’… NAME πŸ’…

std::ostream_iterator::operator* β€” yep, that’s the whole name, and the manual’s NAME line literally says std::ostream_iterator::operator* - std::ostream_iterator::operator* (iconic repetition, honestly). This page lives in the C++ Standard Libary manual under the title std::ostrea...::operator*(3). Bestie, we’re talking about the operator* member of std::ostream_iterator, no cap.

🌸 Synopsis 🌸

ostream_iterator& operator*();

Okay so this member function does nothing. Zero. Zilch. It’s just sitting there looking cute because it’s provided to satisfy the requirements of LegacyOutputIterator. That’s the whole gig.

It returns the iterator itself, which makes it possible to use code such as *iter = value to output (insert) the value into the underlying stream. So that whole expression can do its stream-inserting thing. Slay.

πŸŽ€ Parameters πŸŽ€

(none) β€” literally none, bestie. No arguments, no surprises.

πŸ’– Return value πŸ’–

*this β€” it hands you back the iterator itself. Periodt.


source/version: http://cppreference.com Β· date: 2024.06.10 β€” bye bestie, go slay those iterators πŸ’…βœ¨

πŸ“¦ where this page comes from