Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

ostreambuf_iterator


ostreambuf_iteratorinherits fromoutput_iterator

Summary

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

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <streambuf> 
template<class charT, class traits = char_traits<charT> >
class ostreambuf_iterator
: public output_iterator

Description

The template class 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

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=(charT c); 
ostreambuf_iterator& 
operator++();
ostreambuf_iterator 
operator++(int); 
ostreambuf_iterator 
operator*();

Public Member Functions

bool 
failed() const 
  throw();

Example

See Also

basic_streambuf(3C++), basic_ostream(3C++), istreambuf_iterator(3C++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, Section 24.5.4

Standards Conformance

ANSI X3J16/ISO WG21 Joint C++ Committee



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998