std::ostrea...::operator*(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms