STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
_Vector_alloc< _Alloc_types > Class Template Reference

Public Types

typedef _Vector_alloc< _Alloc_types > _Myt
 
typedef _Alloc_types::_Alloc _Alloc
 
typedef _Alloc_types::_Alty _Alty
 
typedef _Alloc_types::_Val_types _Val_types
 
typedef _Val_types::value_type value_type
 
typedef _Val_types::size_type size_type
 
typedef _Val_types::difference_type difference_type
 
typedef _Val_types::pointer pointer
 
typedef _Val_types::const_pointer const_pointer
 
typedef _Val_types::reference reference
 
typedef _Val_types::const_reference const_reference
 
typedef _Vector_iterator< _Vector_val< _Val_types > > iterator
 
typedef _Vector_const_iterator< _Vector_val< _Val_types > > const_iterator
 

Public Member Functions

 _Vector_alloc ()
 
template<class _Any_alloc , class = enable_if_t<!is_same<decay_t<_Any_alloc>, _Myt>::value>>
 _Vector_alloc (_Any_alloc &&_Al)
 
void _Copy_alloc (const _Alty &_Al)
 
void _Move_alloc (_Alty &_Al)
 
void _Orphan_all ()
 
void _Swap_all (_Myt &_Right)
 
_Alty_Getal () _NOEXCEPT
 
const _Alty_Getal () const _NOEXCEPT
 
_Vector_val< _Val_types > & _Get_data () _NOEXCEPT
 
const _Vector_val< _Val_types > & _Get_data () const _NOEXCEPT
 
pointer_Myfirst () _NOEXCEPT
 
const pointer_Myfirst () const _NOEXCEPT
 
pointer_Mylast () _NOEXCEPT
 
const pointer_Mylast () const _NOEXCEPT
 
pointer_Myend () _NOEXCEPT
 
const pointer_Myend () const _NOEXCEPT
 

Private Attributes

_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
 

Member Typedef Documentation

template<class _Alloc_types>
typedef _Alloc_types::_Alloc _Vector_alloc< _Alloc_types >::_Alloc
template<class _Alloc_types>
typedef _Alloc_types::_Alty _Vector_alloc< _Alloc_types >::_Alty
template<class _Alloc_types>
typedef _Vector_alloc<_Alloc_types> _Vector_alloc< _Alloc_types >::_Myt
template<class _Alloc_types>
typedef _Alloc_types::_Val_types _Vector_alloc< _Alloc_types >::_Val_types
template<class _Alloc_types>
typedef _Vector_const_iterator<_Vector_val<_Val_types> > _Vector_alloc< _Alloc_types >::const_iterator
template<class _Alloc_types>
typedef _Val_types::const_pointer _Vector_alloc< _Alloc_types >::const_pointer
template<class _Alloc_types>
typedef _Val_types::const_reference _Vector_alloc< _Alloc_types >::const_reference
template<class _Alloc_types>
typedef _Val_types::difference_type _Vector_alloc< _Alloc_types >::difference_type
template<class _Alloc_types>
typedef _Vector_iterator<_Vector_val<_Val_types> > _Vector_alloc< _Alloc_types >::iterator
template<class _Alloc_types>
typedef _Val_types::pointer _Vector_alloc< _Alloc_types >::pointer
template<class _Alloc_types>
typedef _Val_types::reference _Vector_alloc< _Alloc_types >::reference
template<class _Alloc_types>
typedef _Val_types::size_type _Vector_alloc< _Alloc_types >::size_type
template<class _Alloc_types>
typedef _Val_types::value_type _Vector_alloc< _Alloc_types >::value_type

Constructor & Destructor Documentation

template<class _Alloc_types>
_Vector_alloc< _Alloc_types >::_Vector_alloc ( )
inline
520  { // default construct allocator
521  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
Definition: xutility:255
template<class _Alloc_types>
template<class _Any_alloc , class = enable_if_t<!is_same<decay_t<_Any_alloc>, _Myt>::value>>
_Vector_alloc< _Alloc_types >::_Vector_alloc ( _Any_alloc &&  _Al)
inline
527  _STD forward<_Any_alloc>(_Al))
528  { // construct allocator from _Al
529  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
Definition: xutility:259

Member Function Documentation

template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Copy_alloc ( const _Alty _Al)
inline
532  { // replace old allocator
533  _Pocca(_Getal(), _Al);
534  }
void _Pocca(_Alty &_Left, const _Alty &_Right, true_type) _NOEXCEPT
Definition: xmemory0:1031
_Alty & _Getal() _NOEXCEPT
Definition: vector:621
template<class _Alloc_types>
_Vector_val<_Val_types>& _Vector_alloc< _Alloc_types >::_Get_data ( )
inline
632  { // return reference to _Vector_val
633  return (_Mypair._Get_second());
634  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
_Ty2 & _Get_second() _NOEXCEPT
Definition: xutility:313
template<class _Alloc_types>
const _Vector_val<_Val_types>& _Vector_alloc< _Alloc_types >::_Get_data ( ) const
inline
637  { // return const reference to _Vector_val
638  return (_Mypair._Get_second());
639  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
_Ty2 & _Get_second() _NOEXCEPT
Definition: xutility:313
template<class _Alloc_types>
_Alty& _Vector_alloc< _Alloc_types >::_Getal ( )
inline
622  { // return reference to allocator
623  return (_Mypair._Get_first());
624  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
_Ty1 & _Get_first() _NOEXCEPT
Definition: xutility:293
template<class _Alloc_types>
const _Alty& _Vector_alloc< _Alloc_types >::_Getal ( ) const
inline
627  { // return const reference to allocator
628  return (_Mypair._Get_first());
629  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:672
_Ty1 & _Get_first() _NOEXCEPT
Definition: xutility:293
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Move_alloc ( _Alty _Al)
inline
537  { // replace old allocator
538  _Pocma(_Getal(), _Al);
539  }
void _Pocma(_Alty &_Left, _Alty &_Right, true_type) _NOEXCEPT
Definition: xmemory0:1050
_Alty & _Getal() _NOEXCEPT
Definition: vector:621
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Myend ( )
inline
662  { // return reference to _Myend
663  return (_Get_data()._Myend);
664  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Myend() _NOEXCEPT
Definition: vector:661
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Myend ( ) const
inline
667  { // return const reference to _Myend
668  return (_Get_data()._Myend);
669  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Myend() _NOEXCEPT
Definition: vector:661
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Myfirst ( )
inline
642  { // return reference to _Myfirst
643  return (_Get_data()._Myfirst);
644  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Myfirst() _NOEXCEPT
Definition: vector:641
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Myfirst ( ) const
inline
647  { // return const reference to _Myfirst
648  return (_Get_data()._Myfirst);
649  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Myfirst() _NOEXCEPT
Definition: vector:641
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Mylast ( )
inline
652  { // return reference to _Mylast
653  return (_Get_data()._Mylast);
654  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Mylast() _NOEXCEPT
Definition: vector:651
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Mylast ( ) const
inline
657  { // return const reference to _Mylast
658  return (_Get_data()._Mylast);
659  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
pointer & _Mylast() _NOEXCEPT
Definition: vector:651
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Orphan_all ( )
inline
612  { // orphan all iterators
613  _Get_data()._Orphan_all();
614  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Swap_all ( _Myt _Right)
inline
617  { // swap all iterators
618  _Get_data()._Swap_all(_Right._Get_data());
619  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:631
constexpr const _Ty &() _Right
Definition: algorithm:3591

Member Data Documentation

template<class _Alloc_types>
_Compressed_pair<_Alty, _Vector_val<_Val_types> > _Vector_alloc< _Alloc_types >::_Mypair
private

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