STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_List_buy< _Ty, _Alloc > Class Template Reference
Inheritance diagram for _List_buy< _Ty, _Alloc >:
_List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > > _List_val< _List_base_types< _Ty, _Alloc >::_Val_types > _Container_base0 list< _Ty, _Alloc >

Public Types

typedef _List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > > _Mybase
 
typedef _Mybase::_Alty _Alty
 
typedef _Mybase::_Nodeptr _Nodeptr
 
- Public Types inherited from _List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > >
typedef _List_alloc< _Al_has_storage, _List_base_types< _Ty, _Alloc > > _Myt
 
typedef _List_base_types< _Ty, _Alloc >::_Alloc _Alloc
 
typedef _List_base_types< _Ty, _Alloc >::_Alnod_type _Alty
 
typedef _List_base_types< _Ty, _Alloc >::_Node _Node
 
typedef _List_base_types< _Ty, _Alloc >::_Nodeptr _Nodeptr
 
- Public Types inherited from _List_val< _List_base_types< _Ty, _Alloc >::_Val_types >
typedef _List_val< _List_base_types< _Ty, _Alloc >::_Val_types > _Myt
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::_Nodeptr _Nodeptr
 
typedef _Nodeptr_Nodepref
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::value_type value_type
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::size_type size_type
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::difference_type difference_type
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::pointer pointer
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::const_pointer const_pointer
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::reference reference
 
typedef _List_base_types< _Ty, _Alloc >::_Val_types::const_reference const_reference
 
typedef _List_const_iterator< _Mytconst_iterator
 
typedef _List_iterator< _Mytiterator
 
typedef _List_unchecked_const_iterator< _Myt_Unchecked_const_iterator
 
typedef _List_unchecked_iterator< _Myt_Unchecked_iterator
 

Public Member Functions

 _List_buy (const _Alloc &_Al=_Alloc())
 
template<class... _Valty>
_Nodeptr _Buynode (_Nodeptr _Next, _Nodeptr _Prev, _Valty &&..._Val)
 
void _Freenode (_Nodeptr _Pnode)
 
- Public Member Functions inherited from _List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > >
 _List_alloc (const _Alloc &_Al=_Alloc())
 
 ~_List_alloc () _NOEXCEPT
 
void _Change_alloc (const _Alty &_Al)
 
void _Swap_alloc (_Myt &_Right)
 
_Nodeptr _Buyheadnode ()
 
void _Freeheadnode (_Nodeptr _Pnode)
 
_Nodeptr _Buynode0 (_Nodeptr _Next, _Nodeptr _Prev)
 
_Alty_Getal ()
 
const _Alty_Getal () const
 
- Public Member Functions inherited from _List_val< _List_base_types< _Ty, _Alloc >::_Val_types >
 _List_val ()
 
- Public Member Functions inherited from _Container_base0
void _Orphan_all ()
 
void _Swap_all (_Container_base0 &)
 

Additional Inherited Members

- Static Public Member Functions inherited from _List_val< _List_base_types< _Ty, _Alloc >::_Val_types >
static _Nodepref _Nextnode (_Nodeptr _Pnode)
 
static _Nodepref _Prevnode (_Nodeptr _Pnode)
 
static reference _Myval (_Nodeptr _Pnode)
 
- Public Attributes inherited from _List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > >
_List_base_types< _Ty, _Alloc >::_Alnod_type _Alnod
 
- Public Attributes inherited from _List_val< _List_base_types< _Ty, _Alloc >::_Val_types >
_Nodeptr _Myhead
 
size_type _Mysize
 

Member Typedef Documentation

template<class _Ty, class _Alloc>
typedef _Mybase::_Alty _List_buy< _Ty, _Alloc >::_Alty
template<class _Ty, class _Alloc>
typedef _List_alloc<!is_empty<_Alloc>::value, _List_base_types<_Ty, _Alloc> > _List_buy< _Ty, _Alloc >::_Mybase
template<class _Ty, class _Alloc>
typedef _Mybase::_Nodeptr _List_buy< _Ty, _Alloc >::_Nodeptr

Constructor & Destructor Documentation

template<class _Ty, class _Alloc>
_List_buy< _Ty, _Alloc >::_List_buy ( const _Alloc _Al = _Alloc())
inline
822  : _Mybase(_Al)
823  { // construct from allocator
824  }
_List_alloc<!is_empty< _Alloc >::value, _List_base_types< _Ty, _Alloc > > _Mybase
Definition: list:817

Member Function Documentation

template<class _Ty, class _Alloc>
template<class... _Valty>
_Nodeptr _List_buy< _Ty, _Alloc >::_Buynode ( _Nodeptr  _Next,
_Nodeptr  _Prev,
_Valty &&...  _Val 
)
inline
829  { // allocate a node and set links and value
830  _Nodeptr _Pnode = this->_Buynode0(_Next, _Prev);
831 
832  _TRY_BEGIN
833  this->_Getal().construct(
834  _STD addressof(this->_Myval(_Pnode)),
835  _STD forward<_Valty>(_Val)...);
836  _CATCH_ALL
837  this->_Getal().deallocate(_Pnode, 1);
838  _RERAISE;
839  _CATCH_END
840 
841  return (_Pnode);
842  }
#define _TRY_BEGIN
Definition: xstddef:60
#define _CATCH_END
Definition: xstddef:63
_Mybase::_Nodeptr _Nodeptr
Definition: list:819
#define _CATCH_ALL
Definition: xstddef:62
_Nodeptr _Buynode0(_Nodeptr _Next, _Nodeptr _Prev)
Definition: list:653
_Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:91
static reference _Myval(_Nodeptr _Pnode)
Definition: list:541
#define _RERAISE
Definition: xstddef:74
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<class _Ty, class _Alloc>
void _List_buy< _Ty, _Alloc >::_Freenode ( _Nodeptr  _Pnode)
inline
846  { // give node back
847  this->_Getal().destroy(
848  _STD addressof(this->_Nextnode(_Pnode)));
849  this->_Getal().destroy(
850  _STD addressof(this->_Prevnode(_Pnode)));
851  this->_Getal().destroy(
852  _STD addressof(this->_Myval(_Pnode)));
853  this->_Getal().deallocate(_Pnode, 1);
854  }
static _Nodepref _Nextnode(_Nodeptr _Pnode)
Definition: list:531
static _Nodepref _Prevnode(_Nodeptr _Pnode)
Definition: list:536
_Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:91
static reference _Myval(_Nodeptr _Pnode)
Definition: list:541

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