ReactOS  0.4.14-dev-1034-g1e60116
front_insert_iterator< _Container > Class Template Reference

#include <_iterator.h>

Inheritance diagram for front_insert_iterator< _Container >:
Collaboration diagram for front_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

 front_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 front_insert_iterator< _Container > _Self
 

Detailed Description

template<class _Container>
class front_insert_iterator< _Container >

Definition at line 191 of file _iterator.h.

Member Typedef Documentation

◆ _Self

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

Definition at line 193 of file _iterator.h.

◆ container_type

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

Definition at line 198 of file _iterator.h.

◆ iterator_category

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

Definition at line 199 of file _iterator.h.

Constructor & Destructor Documentation

◆ front_insert_iterator()

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

Definition at line 200 of file _iterator.h.

200 : container(&__x) {}
_Container * container
Definition: _iterator.h:196

Member Function Documentation

◆ operator *()

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

Definition at line 210 of file _iterator.h.

210 { return *this; }

◆ operator++() [1/2]

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

Definition at line 211 of file _iterator.h.

211 { return *this; }

◆ operator++() [2/2]

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

Definition at line 212 of file _iterator.h.

212 { return *this; }

◆ operator=() [1/2]

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

Definition at line 202 of file _iterator.h.

202  {
203  container = __other.container;
204  return *this;
205  }

◆ operator=() [2/2]

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

Definition at line 206 of file _iterator.h.

206  {
207  container->push_front(__val);
208  return *this;
209  }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656

Member Data Documentation

◆ container

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

Definition at line 196 of file _iterator.h.

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


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