Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 2.12 KB

ostream.md

File metadata and controls

52 lines (39 loc) · 2.12 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: <ostream>
<ostream>
11/04/2016
<ostream>
ostream header
90c3b6fb-57cd-4ae7-99b8-8512f24a67d2

<ostream>

Defines the class template 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

Type nameDescription
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

NameDescription
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

OperatorDescription
operator<<Writes various types to the stream.

Classes

ClassDescription
basic_ostreamThe class template 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

close