ostreambuf_iterator
ostreambuf_iterator
template<class E, class T = char_traits<E> >
class ostreambuf_iterator
: public iterator<output_iterator_tag, void, void> {
public:
typedef E char_type;
typedef T traits_type;
typedef basic_streambuf<E, T> streambuf_type;
typedef basic_ostream<E, T> ostream_type;
ostreambuf_iterator(streambuf_type *sb) throw();
ostreambuf_iterator(ostream_type& os) throw();
ostreambuf_iterator& operator=(E x);
ostreambuf_iterator& operator*();
ostreambuf_iterator& operator++();
T1 operator++(int);
bool failed() const throw();
};
The template class describes an output iterator object. It inserts elements of class E
into an output stream buffer, which it accesses via an object it stores, of type pointer to basic_streambuf<E, T>
.