std::pointer_traits< _Ptr >(3) Library Functions Manual std::pointer_traits< _Ptr >(3)

std::pointer_traits< _Ptr > - Uniform interface to all pointer-like types.

#include <memory>


using difference_type
The type used to represent the difference between two pointers. using element_type
The type pointed to. using pointer
The pointer type. template<typename _Up> using rebind
A pointer to a different type.


static pointer pointer_to (element_type &__r)
Obtain a pointer to an object.

struct std::pointer_traits< _Ptr >"Uniform interface to all pointer-like types.

Since

C++11

The type used to represent the difference between two pointers.

The type pointed to.

The pointer type.

A pointer to a different type.

Obtain a pointer to an object.

Parameters

__r A reference to an object of type element_type

Returns

pointer::pointer_to(__r)

Precondition

pointer::pointer_to(__r) is a valid expression.

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++