Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

<ostream>

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at <ostream>.

Defines the template class basic_ostream, which mediates insertions for the iostreams. The header also defines several related manipulators. (This header is typically included for you by another of the iostreams headers. You rarely need to include it directly.)

#include <ostream>  
  

Typedefs

ostreamCreates a type from basic_ostream that is specialized on char and char_traits specialized on char.
wostreamCreates a type from basic_ostream that is specialized on wchar_t and char_traits specialized on wchar_t.

Manipulators

endlTerminates a line and flushes the buffer.
endsTerminates a string.
flushFlushes the buffer.
swapExchanges the values of the left basic_ostream object parameter for those of the right basic_ostream object parameter.

Operators

operator<<Writes various types to the stream.

Classes

basic_ostreamThe template class describes an object that controls insertion of elements and encoded objects into a stream buffer.

Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions

Show:
© 2017 Microsoft