SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWvostreamIterator< T > Class Template Reference

Writes successive elements onto the output stream from which it was constructed. More...

#include <rw/vstream.h>

Public Member Functions

 RWvostreamIterator (RWvostream &s)
 
RWvostreamIteratoroperator* ()
 
RWvostreamIteratoroperator++ ()
 
RWvostreamIteratoroperator++ (int)
 
RWvostreamIteratoroperator= (const T &value)
 

Detailed Description

template<typename T>
class RWvostreamIterator< T >

Class RWvostreamIterator writes (using operator<<) successive elements onto the output stream from which it was constructed. It is not possible to get a value out of the output iterator. Its only use is as an output iterator in situations like the following.

while (first != last) {
*result++ = *first++;
}
Writes successive elements onto the output stream from which it was constructed.
Definition vstream.h:1233

Constructor & Destructor Documentation

◆ RWvostreamIterator()

template<typename T >
RWvostreamIterator< T >::RWvostreamIterator ( RWvostream & s)
inline

Constructs an iterator that will insert data to the stream s.

Member Function Documentation

◆ operator*()

template<typename T >
RWvostreamIterator & RWvostreamIterator< T >::operator* ( )
inline

Returns a reference to self.

◆ operator++() [1/2]

template<typename T >
RWvostreamIterator & RWvostreamIterator< T >::operator++ ( )
inline

Returns a reference to self.

◆ operator++() [2/2]

template<typename T >
RWvostreamIterator & RWvostreamIterator< T >::operator++ ( int )
inline

Returns a reference to self.

◆ operator=()

template<typename T >
RWvostreamIterator & RWvostreamIterator< T >::operator= ( const T & value)
inline

Inserts value onto the underlying stream and Returns a reference to self.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.