cpp/iterator/ostreambuf iterator

is a single-pass that writes successive characters into the std object for which it was constructed. The actual write operation is performed when the iterator (whether dereferenced or not) is assigned to. Incrementing the is a no-op.

In a typical implementation, the only data members of are a pointer to the associated  and a boolean flag indicating if the end of file condition has been reached.