std::basic_ostream<CharT,Traits>::put (3) - Linux Manuals
std::basic_ostream<CharT,Traits>::put: std::basic_ostream<CharT,Traits>::put
NAME
std::basic_ostream<CharT,Traits>::put - std::basic_ostream<CharT,Traits>::put
Synopsis
basic_ostream& put( char_type ch );
Behaves as an UnformattedOutputFunction. After constructing and checking the sentry object, writes the character ch to the output stream.
If the output fails for any reason, sets badbit.
Parameters
ch - character to write
Return value
*this
Notes
This function is not overloaded for the types signed char or unsigned char, unlike the formatted operator<<
Unlike formatted output functions, this function does not set the failbit if the output fails.
Example
// Run this code
Output:
See also
operator<<(std::basic_ostream) (function template)
write (public member function)