Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

ostreambuf_iterator

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

AltStyle によって変換されたページ (->オリジナル) /