std::basic_ostream::put

From Cppreference

Jump to: navigation, search
basic_ostream& put( char_type ch );

Writes character ch to the output stream. If good() != true, setstate(failbit) is called and the function returns. If inserting fails, setstate(badbit) is called and the function returns.

Contents

[edit] Parameters

ch - character to write

[edit] Return value

*this

[edit] Example

[edit] See also

operator<<
inserts formatted data
(public member function)
write
inserts blocks of characters
(public member function)