Namespaces
Variants
Views
Actions

std::ostreambuf_iterator::operator=

From cppreference.com
< cpp‎ | iterator‎ | ostreambuf iterator
Revision as of 14:01, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
ostreambuf_iterator& operator=( CharT c )
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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

Template:cpp/io/basic streambuf/dcl list sputc