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

Public Types

typedef back_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

 back_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 back_insert_iterator<_Container> back_insert_iterator< _Container >::_Myt
template<class _Container >
typedef _Container::value_type back_insert_iterator< _Container >::_Valty
template<class _Container >
typedef _Container back_insert_iterator< _Container >::container_type

Constructor & Destructor Documentation

template<class _Container >
back_insert_iterator< _Container >::back_insert_iterator ( _Container &  _Cont)
inlineexplicit
26  : container(_STD addressof(_Cont))
27  { // construct with container
28  }
_Container * container
Definition: iterator:58
_Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:91

Member Function Documentation

template<class _Container >
_Myt& back_insert_iterator< _Container >::operator* ( )
inline
43  { // pretend to return designated value
44  return (*this);
45  }
template<class _Container >
_Myt& back_insert_iterator< _Container >::operator++ ( )
inline
48  { // pretend to preincrement
49  return (*this);
50  }
template<class _Container >
_Myt back_insert_iterator< _Container >::operator++ ( int  )
inline
53  { // pretend to postincrement
54  return (*this);
55  }
template<class _Container >
_Myt& back_insert_iterator< _Container >::operator= ( const _Valty _Val)
inline
31  { // push value into container
32  container->push_back(_Val);
33  return (*this);
34  }
_Container * container
Definition: iterator:58
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<class _Container >
_Myt& back_insert_iterator< _Container >::operator= ( _Valty &&  _Val)
inline
37  { // push value into container
38  container->push_back(_STD forward<_Valty>(_Val));
39  return (*this);
40  }
_Container * container
Definition: iterator:58
_FwdIt const _Ty _Val
Definition: algorithm:1938

Member Data Documentation

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

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