- bookworm 12.2.0-14
- testing 12.2.0-14
- unstable 12.3.0-4
- experimental 12.3.0-3~exp1
std::pointer_traits< _Ptr >(3cxx) | std::pointer_traits< _Ptr >(3cxx) |
NAME¶
std::pointer_traits< _Ptr > - Uniform interface to all pointer-like types.
SYNOPSIS¶
#include <memory>
Inherits std::__ptr_traits_impl< _Ptr, _Elt >.
Public Types¶
using difference_type = typename __difference< _Ptr
>::type
The type used to represent the difference between two pointers. using
element_type = _Elt
The type pointed to. using pointer = _Ptr
The pointer type. template<typename _Up > using rebind = typename
__rebind< _Ptr, _Up >::type
A pointer to a different type.
Static Public Member Functions¶
static pointer pointer_to (element_type &__e)
Obtain a pointer to an object.
Detailed Description¶
template<typename _Ptr>¶
struct std::pointer_traits< _Ptr >"Uniform interface to all pointer-like types.
Since
Member Typedef Documentation¶
template<typename _Ptr , typename _Elt > using std::__ptr_traits_impl< _Ptr, _Elt >::difference_type = typename __difference<_Ptr>::type [inherited]¶
The type used to represent the difference between two pointers.
template<typename _Ptr , typename _Elt > using std::__ptr_traits_impl< _Ptr, _Elt >::element_type = _Elt [inherited]¶
The type pointed to.
template<typename _Ptr , typename _Elt > using std::__ptr_traits_impl< _Ptr, _Elt >::pointer = _Ptr [inherited]¶
The pointer type.
template<typename _Ptr , typename _Elt > template<typename _Up > using std::__ptr_traits_impl< _Ptr, _Elt >::rebind = typename __rebind<_Ptr, _Up>::type [inherited]¶
A pointer to a different type.
Member Function Documentation¶
template<typename _Ptr , typename _Elt , bool = is_void<_Elt>::value> static pointer std::__ptr_traits_ptr_to< _Ptr, _Elt, bool >::pointer_to (element_type & __e) [inline], [static], [inherited]¶
Obtain a pointer to an object.
Parameters
Returns
Precondition
Author¶
Generated automatically by Doxygen for libstdc++ from the source code.
Tue Jun 13 2023 | libstdc++ |