Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Standard C++ Library Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

ostreambuf_iterator

Module:  Standard C++ Library   Library:  Iterators


ostreambuf_iterator output_iterator

Local Index

Members

Summary

Writes successive characters onto the stream buffer object from which it was constructed

Synopsis

#include <iterator> 

namespace std {
  template<class charT, class traits = char_traits<charT> >
  class ostreambuf_iterator;
}

Description

The class template ostreambuf_iterator writes successive characters onto the stream buffer object from which it was constructed. operator=() is used to write the characters. In case of failure, the member function failed() returns true.

Interface

Member Types

char_type
ostream_type
streambuf_type
traits_type

Constructors

ostreambuf_iterator(ostream_type& s) throw();
ostreambuf_iterator(streambuf_type *s) throw();

Member Operators

ostreambuf_iterator& 
operator=(char_type c); 
ostreambuf_iterator& 
operator++();
ostreambuf_iterator 
operator++(int); 
ostreambuf_iterator 
operator*();

Public Member Functions

bool 
failed() const 
  throw();

Example

See Also

basic_streambuf, basic_ostream, istreambuf_iterator

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 24.5.4



Previous fileTop of DocumentContentsIndex pageNext file

Copyright (c) 1994-2006 Rogue Wave Software, a Quovadx Division.
Licensed under the Apache License, Version 2.0.
Contact Rogue Wave about documentation or support issues. You can also seek help from other developers through the Apache stdcxx community (see below).

For more information on the Rogue Wave Standard C++ Library under open source, see Section 1.2 of the user's guide.