ostream File Reference

#include <ios>
#include <bits/ostream.tcc>

Include dependency graph for ostream:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  std

Functions

template<typename CharT, typename Traits>
basic_ostream< CharT, Traits > & endl (basic_ostream< CharT, Traits > &__os)
 Write a newline and flush the stream.
template<typename CharT, typename Traits>
basic_ostream< CharT, Traits > & ends (basic_ostream< CharT, Traits > &__os)
 Write a null character into the output sequence.
template<typename CharT, typename Traits>
basic_ostream< CharT, Traits > & flush (basic_ostream< CharT, Traits > &__os)
 Flushes the output stream.


Detailed Description

This is a Standard C++ Library header. You should #include this header in your programs, rather than any of the "st[dl]_*.h" implementation files.

Definition in file ostream.


Function Documentation

template<typename CharT, typename Traits>
basic_ostream<CharT, Traits>& std::endl basic_ostream< CharT, Traits > &  __os  ) 
 

Write a newline and flush the stream.

This manipulator is often mistakenly used when a simple newline is desired, leading to poor buffering performance. See http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#2 for more on this subject.

Definition at line 518 of file ostream.

template<typename CharT, typename Traits>
basic_ostream<CharT, Traits>& std::ends basic_ostream< CharT, Traits > &  __os  ) 
 

Write a null character into the output sequence.

"Null character" is CharT() by definition. For CharT of char, this correctly writes the ASCII NUL character string terminator.

Definition at line 529 of file ostream.

References std::basic_ostream< CharT, Traits >::put().

template<typename CharT, typename Traits>
basic_ostream<CharT, Traits>& std::flush basic_ostream< CharT, Traits > &  __os  ) 
 

Flushes the output stream.

This manipulator simply calls the stream's flush() member function.

Definition at line 539 of file ostream.

References std::basic_ostream< CharT, Traits >::flush().


Generated on Fri May 6 01:10:54 2005 for libstdc++-v3 Source by  doxygen 1.4.2