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::size_type size_type
 
typedef _Val_types::difference_type difference_type
 
typedef _Val_types::pointer pointer
 
typedef _Val_types::const_pointer const_pointer
 
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::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::size_type _Vector_alloc< _Alloc_types >::size_type

Constructor & Destructor Documentation

template<class _Alloc_types>
_Vector_alloc< _Alloc_types >::_Vector_alloc ( )
inline
508  { // default construct allocator
509  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
Definition: xutility:278
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
515  _STD forward<_Any_alloc>(_Al))
516  { // construct allocator from _Al
517  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
Definition: xutility:282

Member Function Documentation

template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Copy_alloc ( const _Alty _Al)
inline
520  { // replace old allocator
521  _Pocca(_Getal(), _Al);
522  }
void _Pocca(_Alty &_Left, const _Alty &_Right, true_type) _NOEXCEPT
Definition: xmemory0:1131
_Alty & _Getal() _NOEXCEPT
Definition: vector:629
template<class _Alloc_types>
_Vector_val<_Val_types>& _Vector_alloc< _Alloc_types >::_Get_data ( )
inline
640  { // return reference to _Vector_val
641  return (_Mypair._Get_second());
642  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
_Ty2 & _Get_second() _NOEXCEPT
Definition: xutility:336
template<class _Alloc_types>
const _Vector_val<_Val_types>& _Vector_alloc< _Alloc_types >::_Get_data ( ) const
inline
645  { // return const reference to _Vector_val
646  return (_Mypair._Get_second());
647  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
_Ty2 & _Get_second() _NOEXCEPT
Definition: xutility:336
template<class _Alloc_types>
_Alty& _Vector_alloc< _Alloc_types >::_Getal ( )
inline
630  { // return reference to allocator
631  return (_Mypair._Get_first());
632  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
_Ty1 & _Get_first() _NOEXCEPT
Definition: xutility:316
template<class _Alloc_types>
const _Alty& _Vector_alloc< _Alloc_types >::_Getal ( ) const
inline
635  { // return const reference to allocator
636  return (_Mypair._Get_first());
637  }
_Compressed_pair< _Alty, _Vector_val< _Val_types > > _Mypair
Definition: vector:680
_Ty1 & _Get_first() _NOEXCEPT
Definition: xutility:316
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Move_alloc ( _Alty _Al)
inline
525  { // replace old allocator
526  _Pocma(_Getal(), _Al);
527  }
void _Pocma(_Alty &_Left, _Alty &_Right, true_type) _NOEXCEPT
Definition: xmemory0:1150
_Alty & _Getal() _NOEXCEPT
Definition: vector:629
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Myend ( )
inline
670  { // return reference to _Myend
671  return (_Get_data()._Myend);
672  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Myend() _NOEXCEPT
Definition: vector:669
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Myend ( ) const
inline
675  { // return const reference to _Myend
676  return (_Get_data()._Myend);
677  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Myend() _NOEXCEPT
Definition: vector:669
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Myfirst ( )
inline
650  { // return reference to _Myfirst
651  return (_Get_data()._Myfirst);
652  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Myfirst() _NOEXCEPT
Definition: vector:649
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Myfirst ( ) const
inline
655  { // return const reference to _Myfirst
656  return (_Get_data()._Myfirst);
657  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Myfirst() _NOEXCEPT
Definition: vector:649
template<class _Alloc_types>
pointer& _Vector_alloc< _Alloc_types >::_Mylast ( )
inline
660  { // return reference to _Mylast
661  return (_Get_data()._Mylast);
662  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Mylast() _NOEXCEPT
Definition: vector:659
template<class _Alloc_types>
const pointer& _Vector_alloc< _Alloc_types >::_Mylast ( ) const
inline
665  { // return const reference to _Mylast
666  return (_Get_data()._Mylast);
667  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
pointer & _Mylast() _NOEXCEPT
Definition: vector:659
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Orphan_all ( )
inline
620  { // orphan all iterators
621  _Get_data()._Orphan_all();
622  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
template<class _Alloc_types>
void _Vector_alloc< _Alloc_types >::_Swap_all ( _Myt _Right)
inline
625  { // swap all iterators
626  _Get_data()._Swap_all(_Right._Get_data());
627  }
_Vector_val< _Val_types > & _Get_data() _NOEXCEPT
Definition: vector:639
constexpr const _Ty &() _Right
Definition: algorithm:3723

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: