libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ __shared_count() [7/12]

template<_Lock_policy _Lp>
template<typename _Tp, typename _Alloc, typename... _Args>
std::__shared_count< _Lp >::__shared_count ( _Tp *& __p,
_Sp_alloc_shared_tag< _Alloc > __a,
_Args &&... __args )
inline

Definition at line 1028 of file shared_ptr_base.h.

1030 {
1031 using _Tp2 = __remove_cv_t<_Tp>;
1033 typename _Sp_cp_type::__allocator_type __a2(__a._M_a);
1035 _Sp_cp_type* __mem = __guard.get();
1036 auto __pi = ::new (__mem)
1038 __guard = nullptr;
1039 _M_pi = __pi;
1040 __p = __pi->_M_ptr();
1041 }
_Sp_counted_base< _Lp > * _M_pi

References std::_Sp_alloc_shared_tag< _Alloc >::_M_a, _M_pi, and std::forward().

Here is the call graph for this function: