std::pointer_traits< _Tp * > Struct Template Reference

Public Types

typedef ptrdiff_t difference_type
typedef _Tp element_type
typedef _Tp * pointer
template<typename _Up >
using rebind = _Up *

Static Public Member Functions

static constexpr pointer pointer_to (__make_not_void< element_type > &__r) noexcept

Detailed Description

template<typename _Tp>
struct std::pointer_traits< _Tp * >

Partial specialization for built-in pointers.

Definition at line 128 of file ptr_traits.h.

Member Typedef Documentation

◆ difference_type

template<typename _Tp >
typedef ptrdiff_t std::pointer_traits< _Tp * >::difference_type

Type used to represent the difference between two pointers.

Definition at line 135 of file ptr_traits.h.

◆ element_type

template<typename _Tp >
typedef _Tp std::pointer_traits< _Tp * >::element_type

The type pointed to.

Definition at line 133 of file ptr_traits.h.

◆ pointer

template<typename _Tp >
typedef _Tp* std::pointer_traits< _Tp * >::pointer

The pointer type.

Definition at line 131 of file ptr_traits.h.

Member Function Documentation

◆ pointer_to()

template<typename _Tp >
static constexpr pointer std::pointer_traits< _Tp * >::pointer_to ( __make_not_void< element_type > &  __r)

Obtain a pointer to an object.

__rA reference to an object of type element_type

Definition at line 146 of file ptr_traits.h.

References std::addressof().

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