libstdc++
std::pointer_traits< _Tp * > Struct Template Reference

#include <ptr_traits.h>

Inherits std::__ptr_traits_ptr_to< _Ptr, _Elt, bool >.

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 pointer pointer_to (element_type &__e)
 

Detailed Description

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

Partial specialization for built-in pointers.

Since
C++11

Definition at line 210 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 217 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 215 of file ptr_traits.h.

◆ pointer

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

The pointer type.

Definition at line 213 of file ptr_traits.h.

◆ rebind

template<typename _Tp >
template<typename _Up >
using std::pointer_traits< _Tp * >::rebind = _Up*

A pointer to a different type.

Definition at line 219 of file ptr_traits.h.

Member Function Documentation

◆ pointer_to()

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)
inlinestaticinherited

Obtain a pointer to an object.

Parameters
__rA reference to an object of type element_type
Returns
pointer::pointer_to(__e)
Precondition
pointer::pointer_to(__e) is a valid expression.

Definition at line 108 of file ptr_traits.h.


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