ReactOS 0.4.15-dev-7931-gfd331f1
_STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc > Class Template Reference

#include <_alloc.h>

Inheritance diagram for _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >:
Collaboration diagram for _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >:

Public Member Functions

 _STLP_alloc_proxy (const _MaybeReboundAlloc &__a, _Value __p)
 
 _STLP_alloc_proxy (__move_source< _Self > src)
 
_Base_M_base ()
 
void _M_swap_alloc (_Self &__x)
 
void swap (_Self &__x)
 
_Tp * allocate (size_type __n, size_type &__allocated_n)
 
_Tp * allocate (size_type __n)
 

Public Attributes

_Value _M_data
 

Private Types

typedef _MaybeReboundAlloc _Base
 
typedef _Base::size_type size_type
 
typedef _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc > _Self
 

Private Member Functions

void _M_swap_alloc (_Self &, const __true_type &)
 
void _M_swap_alloc (_Self &__x, const __false_type &)
 
_Tp * allocate (size_type __n, size_type &__allocated_n, const __true_type &)
 
_Tp * allocate (size_type __n, size_type &__allocated_n, const __false_type &)
 

Detailed Description

template<class _Value, class _Tp, class _MaybeReboundAlloc>
class _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >

Definition at line 472 of file _alloc.h.

Member Typedef Documentation

◆ _Base

template<class _Value , class _Tp , class _MaybeReboundAlloc >
typedef _MaybeReboundAlloc _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_Base
private

Definition at line 474 of file _alloc.h.

◆ _Self

template<class _Value , class _Tp , class _MaybeReboundAlloc >
typedef _STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc> _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_Self
private

Definition at line 476 of file _alloc.h.

◆ size_type

template<class _Value , class _Tp , class _MaybeReboundAlloc >
typedef _Base::size_type _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::size_type
private

Definition at line 475 of file _alloc.h.

Constructor & Destructor Documentation

◆ _STLP_alloc_proxy() [1/2]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_STLP_alloc_proxy ( const _MaybeReboundAlloc &  __a,
_Value  __p 
)
inline

Definition at line 480 of file _alloc.h.

480 :
481 _MaybeReboundAlloc(__a), _M_data(__p) {}
_Value _M_data
Definition: _alloc.h:478

◆ _STLP_alloc_proxy() [2/2]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_STLP_alloc_proxy ( __move_source< _Self src)
inline

Definition at line 484 of file _alloc.h.

484 :
485 _Base(_STLP_PRIV _AsMoveSource(src.get()._M_base())),
486 _M_data(_STLP_PRIV _AsMoveSource(src.get()._M_data)) {}
#define _STLP_PRIV
Definition: _dm.h:70
_STLP_TYPENAME_ON_RETURN_TYPE _MoveSourceTraits< _Tp >::_Type _AsMoveSource(_Tp &src)
_MaybeReboundAlloc _Base
Definition: _alloc.h:474
GLenum src
Definition: glext.h:6340

Member Function Documentation

◆ _M_base()

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Base & _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_M_base ( )
inline

Definition at line 488 of file _alloc.h.

489 { return *this; }

Referenced by _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_STLP_alloc_proxy().

◆ _M_swap_alloc() [1/3]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
void _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_M_swap_alloc ( _Self ,
const __true_type  
)
inlineprivate

◆ _M_swap_alloc() [2/3]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
void _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_M_swap_alloc ( _Self __x)
inline

Definition at line 507 of file _alloc.h.

507 {
508#if !defined (__BORLANDC__)
509 typedef typename _IsStateless<_MaybeReboundAlloc>::_Ret _StatelessAlloc;
510#else
511 typedef typename __bool2type<_IsStateless<_MaybeReboundAlloc>::_Is>::_Ret _StatelessAlloc;
512#endif
513 _M_swap_alloc(__x, _StatelessAlloc());
514 }
void _M_swap_alloc(_Self &, const __true_type &)
Definition: _alloc.h:497

◆ _M_swap_alloc() [3/3]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
void _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_M_swap_alloc ( _Self __x,
const __false_type  
)
inlineprivate

Definition at line 500 of file _alloc.h.

500 {
501 _MaybeReboundAlloc &__base_this = *this;
502 _MaybeReboundAlloc &__base_x = __x;
503 _STLP_STD::swap(__base_this, __base_x);
504 }

◆ allocate() [1/4]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Tp * _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::allocate ( size_type  __n)
inline

Definition at line 547 of file _alloc.h.

548 { return _Base::allocate(__n); }
return __n
Definition: _algo.h:75

◆ allocate() [2/4]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Tp * _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::allocate ( size_type  __n,
size_type __allocated_n 
)
inline

◆ allocate() [3/4]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Tp * _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::allocate ( size_type  __n,
size_type __allocated_n,
const __false_type  
)
inlineprivate

Definition at line 554 of file _alloc.h.

555 { __allocated_n = __n; return allocate(__n); }

◆ allocate() [4/4]

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Tp * _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::allocate ( size_type  __n,
size_type __allocated_n,
const __true_type  
)
inlineprivate

Definition at line 550 of file _alloc.h.

551 { return _Base::_M_allocate(__n, __allocated_n); }

◆ swap()

template<class _Value , class _Tp , class _MaybeReboundAlloc >
void _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::swap ( _Self __x)
inline

Definition at line 520 of file _alloc.h.

520 {
521 _M_swap_alloc(__x);
522 _STLP_STD::swap(_M_data, __x._M_data);
523 }

Referenced by _String_base< _Tp, _Alloc >::_M_swap(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::swap(), and list< _Tp, >::swap().

Member Data Documentation

◆ _M_data

template<class _Value , class _Tp , class _MaybeReboundAlloc >
_Value _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::_M_data

Definition at line 478 of file _alloc.h.

Referenced by _Deque_base< _Tp, _Alloc >::_Deque_base(), _List_base< _Tp, _Alloc >::_List_base(), _String_base< _Tp, _Alloc >::_M_capacity(), _Bvector_base< _Alloc >::_M_deallocate(), _String_base< _Tp, _Alloc >::_M_deallocate_block(), _List_base< _Tp, _Alloc >::_M_empty_initialize(), _Rb_tree_base< _Tp, _Alloc >::_M_empty_initialize(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_find(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_leftmost(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_lower_bound(), _Rb_tree_base< _Tp, _Alloc >::_M_rebind(), _String_base< _Tp, _Alloc >::_M_reset(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_rightmost(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_root(), _String_base< _Tp, _Alloc >::_M_Start(), _String_base< _Tp, _Alloc >::_M_swap(), list< _Tp, >::_M_swap_aux(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_M_upper_bound(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::_Rb_tree(), _Rope_RopeSubstring< _CharT, _Alloc >::_Rope_RopeSubstring(), rope< _CharT, _Alloc >::_S_add_leaf_to_forest(), rope< _CharT, _Alloc >::_S_compare(), rope< _CharT, _Alloc >::_S_concat_char_iter(), rope< _CharT, _Alloc >::_S_concat_rep(), rope< _CharT, _Alloc >::_S_destr_concat_char_iter(), rope< _CharT, _Alloc >::_S_destr_leaf_concat_char_iter(), rope< _CharT, _Alloc >::_S_fetch(), rope< _CharT, _Alloc >::_S_fetch_ptr(), rope< _CharT, _Alloc >::_S_flatten(), rope< _CharT, _Alloc >::_S_is_almost_balanced(), rope< _CharT, _Alloc >::_S_is_balanced(), rope< _CharT, _Alloc >::_S_is_roughly_balanced(), rope< _CharT, _Alloc >::_S_leaf_concat_char_iter(), _Rope_iterator_base< _CharT, _Alloc >::_S_setbuf(), _Rope_iterator_base< _CharT, _Alloc >::_S_setcache(), _Rope_iterator_base< _CharT, _Alloc >::_S_setcache_for_incr(), rope< _CharT, _Alloc >::_S_substring(), rope< _CharT, _Alloc >::_S_tree_concat(), _Slist_base< _Tp, _Alloc >::_Slist_base(), _String_base< _Tp, _Alloc >::_String_base(), _Vector_base< _Tp, _Alloc >::_Vector_base(), list< _Tp, >::begin(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::clear(), _List_base< _Tp, _Alloc >::empty(), list< _Tp, >::end(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::end(), _Rope_RopeSubstring< _CharT, _Alloc >::operator()(), _Rope_char_ref_proxy< _CharT, _Alloc >::operator=(), rope< _CharT, _Alloc >::replace(), list< _Tp, >::reverse(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::swap(), _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >::swap(), list< _Tp, >::swap(), _Slist_base< _Tp, _Alloc >::~_Slist_base(), and _Vector_base< _Tp, _Alloc >::~_Vector_base().


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