template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT>>
class std::ostream_iterator< _Tp, _CharT, _Traits >
Provides output iterator semantics for streams.
This class provides an iterator to write to an ostream. The type Tp is the only type written by this iterator and there must be an operator<<(Tp) defined.
- Template Parameters:
|_Tp||The type to write to the ostream. |
|_CharT||The ostream char_type. |
|_Traits||The ostream char_traits. |
Definition at line 154 of file stream_iterator.h.
template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
Construct from an ostream.
The delimiter string c is written to the stream after every Tp written to the stream. The delimiter is not copied, and thus must not be destroyed while this iterator is in use.
|__s||Underlying ostream to write to. |
|__c||CharT delimiter string to insert. |
Definition at line 183 of file stream_iterator.h.