ReactOS 0.4.15-dev-5666-gc548b97
back_insert_iterator< _Container > Class Template Reference

#include <_iterator.h>

Inheritance diagram for back_insert_iterator< _Container >:
Collaboration diagram for back_insert_iterator< _Container >:

Public Types

typedef _Container container_type
 
typedef output_iterator_tag iterator_category
 
- Public Types inherited from iterator< output_iterator_tag, void, void, void, void >
typedef output_iterator_tag iterator_category
 

Public Member Functions

 back_insert_iterator (_Container &__x)
 
_Selfoperator= (const _Self &__other)
 
_Selfoperator= (const typename _Container::value_type &__val)
 
_Selfoperator* ()
 
_Selfoperator++ ()
 
_Self operator++ (int)
 

Protected Attributes

_Container * container
 

Private Types

typedef back_insert_iterator< _Container > _Self
 

Detailed Description

template<class _Container>
class back_insert_iterator< _Container >

Definition at line 161 of file _iterator.h.

Member Typedef Documentation

◆ _Self

template<class _Container >
typedef back_insert_iterator<_Container> back_insert_iterator< _Container >::_Self
private

Definition at line 163 of file _iterator.h.

◆ container_type

template<class _Container >
typedef _Container back_insert_iterator< _Container >::container_type

Definition at line 168 of file _iterator.h.

◆ iterator_category

template<class _Container >
typedef output_iterator_tag back_insert_iterator< _Container >::iterator_category

Definition at line 169 of file _iterator.h.

Constructor & Destructor Documentation

◆ back_insert_iterator()

template<class _Container >
back_insert_iterator< _Container >::back_insert_iterator ( _Container &  __x)
inlineexplicit

Definition at line 171 of file _iterator.h.

171: container(&__x) {}

Member Function Documentation

◆ operator*()

template<class _Container >
_Self & back_insert_iterator< _Container >::operator* ( )
inline

Definition at line 181 of file _iterator.h.

181{ return *this; }

◆ operator++() [1/2]

template<class _Container >
_Self & back_insert_iterator< _Container >::operator++ ( )
inline

Definition at line 182 of file _iterator.h.

182{ return *this; }

◆ operator++() [2/2]

template<class _Container >
_Self back_insert_iterator< _Container >::operator++ ( int  )
inline

Definition at line 183 of file _iterator.h.

183{ return *this; }

◆ operator=() [1/2]

template<class _Container >
_Self & back_insert_iterator< _Container >::operator= ( const _Self __other)
inline

Definition at line 173 of file _iterator.h.

173 {
174 container = __other.container;
175 return *this;
176 }

◆ operator=() [2/2]

template<class _Container >
_Self & back_insert_iterator< _Container >::operator= ( const typename _Container::value_type &  __val)
inline

Definition at line 177 of file _iterator.h.

177 {
178 container->push_back(__val);
179 return *this;
180 }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656

Member Data Documentation

◆ container

template<class _Container >
_Container* back_insert_iterator< _Container >::container
protected

Definition at line 166 of file _iterator.h.

Referenced by back_insert_iterator< _Container >::operator=().


The documentation for this class was generated from the following file: