libstdc++
GNU C++ library
Loading...
Searching...
No Matches
◆
const_pointer_cast()
[2/2]
template<typename _Tp, typename _Tp1,
_Lock_policy
_Lp>
__shared_ptr
< _Tp, _Lp > std::const_pointer_cast
(
const
__shared_ptr
< _Tp1, _Lp > &
__r
)
inline
noexcept
const_pointer_cast
Definition at line
2045
of file
shared_ptr_base.h
.
2046
{
2047
using
_Sp =
__shared_ptr<_Tp, _Lp>
;
2048
return
_Sp(__r,
const_cast<
typename _Sp::element_type*
>
(__r.
get
()));
2049
}
std::__shared_ptr::get
element_type * get() const noexcept
Return the stored pointer.
Definition
shared_ptr_base.h:1750
std::__shared_ptr
Definition
shared_ptr_base.h:1510
std
Generated on
for libstdc++ by
1.16.1