Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.)
Syntax
#include <ostream>  
  
Typedefs
| ostream | Creates a type from basic_ostreamthat is specialized oncharandchar_traitsspecialized onchar. | 
| wostream | Creates a type from basic_ostreamthat is specialized onwchar_tandchar_traitsspecialized onwchar_t. | 
Manipulators
| endl | Terminates a line and flushes the buffer. | 
| ends | Terminates a string. | 
| flush | Flushes the buffer. | 
| swap | Exchanges the values of the left basic_ostreamobject parameter for those of the rightbasic_ostreamobject parameter. | 
Operators
| operator<< | Writes various types to the stream. | 
Classes
| basic_ostream | The template class describes an object that controls insertion of elements and encoded objects into a stream buffer. | 
See Also
Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions