Namespaces
Variants
Views
Actions

std::ostreambuf_iterator::operator=

From cppreference.com
ostreambuf_iterator& operator=( CharT c )

If Template:rlpf returns true, inserts the character c into the associated stream buffer by calling pbuf->sputc(c), where pbuf is the private member of type streambuf_type*. Otherwise, does nothing.

If the call to pbuf->sputc(c) returns Traits::eof, sets the failed() flag to true.

Contents

Parameters

c - the character to insert

Return value

*this

Example

See also

writes one character to the put area and advances the next pointer
(public member function of std::basic_streambuf) [edit]