STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | List of all members
front_insert_iterator< _Container > Class Template Reference
Inheritance diagram for front_insert_iterator< _Container >:
iterator< _Category, _Ty, _Diff, _Pointer, _Reference >

Public Types

typedef front_insert_iterator< _Container > _Myt
 
typedef _Container container_type
 
typedef _Container::value_type _Valty
 
- Public Types inherited from iterator< _Category, _Ty, _Diff, _Pointer, _Reference >
typedef _Category iterator_category
 
typedef _Ty value_type
 
typedef _Diff difference_type
 
typedef _Diff distance_type
 
typedef _Pointer pointer
 
typedef _Reference reference
 

Public Member Functions

 front_insert_iterator (_Container &_Cont)
 
_Mytoperator= (const _Valty &_Val)
 
_Mytoperator= (_Valty &&_Val)
 
_Mytoperator* ()
 
_Mytoperator++ ()
 
_Myt operator++ (int)
 

Protected Attributes

_Container * container
 

Member Typedef Documentation

template<class _Container >
typedef front_insert_iterator<_Container> front_insert_iterator< _Container >::_Myt
template<class _Container >
typedef _Container::value_type front_insert_iterator< _Container >::_Valty
template<class _Container >
typedef _Container front_insert_iterator< _Container >::container_type

Constructor & Destructor Documentation

template<class _Container >
front_insert_iterator< _Container >::front_insert_iterator ( _Container &  _Cont)
inlineexplicit
85  : container(_STD addressof(_Cont))
86  { // construct with container
87  }
_Container * container
Definition: iterator:117
_Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:91

Member Function Documentation

template<class _Container >
_Myt& front_insert_iterator< _Container >::operator* ( )
inline
102  { // pretend to return designated value
103  return (*this);
104  }
template<class _Container >
_Myt& front_insert_iterator< _Container >::operator++ ( )
inline
107  { // pretend to preincrement
108  return (*this);
109  }
template<class _Container >
_Myt front_insert_iterator< _Container >::operator++ ( int  )
inline
112  { // pretend to postincrement
113  return (*this);
114  }
template<class _Container >
_Myt& front_insert_iterator< _Container >::operator= ( const _Valty _Val)
inline
90  { // push value into container
91  container->push_front(_Val);
92  return (*this);
93  }
_Container * container
Definition: iterator:117
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<class _Container >
_Myt& front_insert_iterator< _Container >::operator= ( _Valty &&  _Val)
inline
96  { // push value into container
97  container->push_front(_STD forward<_Valty>(_Val));
98  return (*this);
99  }
_Container * container
Definition: iterator:117
_FwdIt const _Ty _Val
Definition: algorithm:1938

Member Data Documentation

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

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