STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Flist_buy< _Ty, _Alloc > Class Template Reference
Inheritance diagram for _Flist_buy< _Ty, _Alloc >:
_Flist_alloc< _Flist_base_types< _Ty, _Alloc > > forward_list< _Ty, _Alloc >

Public Types

typedef _Flist_buy< _Ty, _Alloc_Myt
 
typedef _Flist_alloc< _Flist_base_types< _Ty, _Alloc > > _Mybase
 
typedef _Mybase::_Alty _Alty
 
typedef _Mybase::_Nodeptr _Nodeptr
 
- Public Types inherited from _Flist_alloc< _Flist_base_types< _Ty, _Alloc > >
typedef _Flist_alloc< _Flist_base_types< _Ty, _Alloc > > _Myt
 
typedef _Flist_base_types< _Ty, _Alloc >::_Alloc _Alloc
 
typedef _Flist_base_types< _Ty, _Alloc >::_Alnod_type _Alty
 
typedef _Flist_base_types< _Ty, _Alloc >::_Node _Node
 
typedef _Flist_base_types< _Ty, _Alloc >::_Nodeptr _Nodeptr
 
typedef _Flist_base_types< _Ty, _Alloc >::_Val_types _Val_types
 
typedef _Nodeptr_Nodepref
 
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 _Flist_const_iterator< _Flist_val< _Val_types > > const_iterator
 
typedef _Flist_iterator< _Flist_val< _Val_types > > iterator
 

Public Member Functions

 _Flist_buy ()
 
template<class _Any_alloc , class = enable_if_t<!is_same<decay_t<_Any_alloc>, _Myt>::value>>
 _Flist_buy (_Any_alloc &&_Al)
 
_Nodeptr _Buynode0 (_Nodeptr _Next)
 
template<class... _Valty>
_Nodeptr _Buynode (_Nodeptr _Next, _Valty &&..._Val)
 
void _Freenode (_Nodeptr _Pnode)
 
- Public Member Functions inherited from _Flist_alloc< _Flist_base_types< _Ty, _Alloc > >
 _Flist_alloc ()
 
 _Flist_alloc (_Any_alloc &&_Al)
 
 ~_Flist_alloc () _NOEXCEPT
 
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
 
_Flist_val< _Val_types > & _Get_data () _NOEXCEPT
 
const _Flist_val< _Val_types > & _Get_data () const _NOEXCEPT
 
_Nodeptr_Myhead () _NOEXCEPT
 
const _Nodeptr_Myhead () const _NOEXCEPT
 
_Nodeptr _Before_head () const _NOEXCEPT
 

Additional Inherited Members

- Static Public Member Functions inherited from _Flist_alloc< _Flist_base_types< _Ty, _Alloc > >
static _Nodepref _Nextnode (_Nodeptr _Pnode)
 
static reference _Myval (_Nodeptr _Pnode)
 

Member Typedef Documentation

template<class _Ty , class _Alloc >
typedef _Mybase::_Alty _Flist_buy< _Ty, _Alloc >::_Alty
template<class _Ty , class _Alloc >
typedef _Flist_alloc<_Flist_base_types<_Ty, _Alloc> > _Flist_buy< _Ty, _Alloc >::_Mybase
template<class _Ty , class _Alloc >
typedef _Flist_buy<_Ty, _Alloc> _Flist_buy< _Ty, _Alloc >::_Myt
template<class _Ty , class _Alloc >
typedef _Mybase::_Nodeptr _Flist_buy< _Ty, _Alloc >::_Nodeptr

Constructor & Destructor Documentation

template<class _Ty , class _Alloc >
_Flist_buy< _Ty, _Alloc >::_Flist_buy ( )
inline
665  : _Mybase()
666  { // default construct
667  }
_Flist_alloc< _Flist_base_types< _Ty, _Alloc > > _Mybase
Definition: forward_list:660
template<class _Ty , class _Alloc >
template<class _Any_alloc , class = enable_if_t<!is_same<decay_t<_Any_alloc>, _Myt>::value>>
_Flist_buy< _Ty, _Alloc >::_Flist_buy ( _Any_alloc &&  _Al)
inline
672  : _Mybase(_STD forward<_Any_alloc>(_Al))
673  { // construct from allocator
674  }
_Flist_alloc< _Flist_base_types< _Ty, _Alloc > > _Mybase
Definition: forward_list:660

Member Function Documentation

template<class _Ty , class _Alloc >
template<class... _Valty>
_Nodeptr _Flist_buy< _Ty, _Alloc >::_Buynode ( _Nodeptr  _Next,
_Valty &&...  _Val 
)
inline
694  { // allocate a node and set links and value
695  _Nodeptr _Pnode = this->_Buynode0(_Next);
696 
697  _TRY_BEGIN
698  this->_Getal().construct(
699  _STD addressof(this->_Myval(_Pnode)),
700  _STD forward<_Valty>(_Val)...);
701  _CATCH_ALL
702  this->_Getal().deallocate(_Pnode, 1);
703  _RERAISE;
704  _CATCH_END
705 
706  return (_Pnode);
707  }
_Alty & _Getal() _NOEXCEPT
Definition: forward_list:613
constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:723
#define _TRY_BEGIN
Definition: xstddef:60
#define _CATCH_END
Definition: xstddef:63
_In_ int _Val
Definition: vcruntime_string.h:62
_Nodeptr _Buynode0(_Nodeptr _Next)
Definition: forward_list:676
#define _CATCH_ALL
Definition: xstddef:62
static reference _Myval(_Nodeptr _Pnode)
Definition: forward_list:500
#define _RERAISE
Definition: xstddef:74
_Mybase::_Nodeptr _Nodeptr
Definition: forward_list:662
template<class _Ty , class _Alloc >
_Nodeptr _Flist_buy< _Ty, _Alloc >::_Buynode0 ( _Nodeptr  _Next)
inline
677  { // allocate a node and set links
678  _Nodeptr _Pnode = this->_Getal().allocate(1);
679 
680  _TRY_BEGIN
681  this->_Getal().construct(
682  _STD addressof(this->_Nextnode(_Pnode)), _Next);
683  _CATCH_ALL
684  this->_Getal().deallocate(_Pnode, 1);
685  _RERAISE;
686  _CATCH_END
687 
688  return (_Pnode);
689  }
_Alty & _Getal() _NOEXCEPT
Definition: forward_list:613
constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:723
#define _TRY_BEGIN
Definition: xstddef:60
static _Nodepref _Nextnode(_Nodeptr _Pnode)
Definition: forward_list:495
#define _CATCH_END
Definition: xstddef:63
#define _CATCH_ALL
Definition: xstddef:62
#define _RERAISE
Definition: xstddef:74
_Mybase::_Nodeptr _Nodeptr
Definition: forward_list:662
template<class _Ty , class _Alloc >
void _Flist_buy< _Ty, _Alloc >::_Freenode ( _Nodeptr  _Pnode)
inline
711  { // give node back
712  this->_Getal().destroy(
713  _STD addressof(this->_Nextnode(_Pnode)));
714  this->_Getal().destroy(
715  _STD addressof(this->_Myval(_Pnode)));
716  this->_Getal().deallocate(_Pnode, 1);
717  }
_Alty & _Getal() _NOEXCEPT
Definition: forward_list:613
constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:723
static _Nodepref _Nextnode(_Nodeptr _Pnode)
Definition: forward_list:495
static reference _Myval(_Nodeptr _Pnode)
Definition: forward_list:500

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