Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::pointer_traits< T * > Class Template Reference

pointer_traits specialization to handle raw pointer types. More...

Inheritance diagram for std::pointer_traits< T * >:
Inheritance graph

Public Types

using difference_type = ptrdiff_t
 The type used to represent the difference between two pointers.
 
using element_type = T
 The type of the element that is pointed to.
 
using pointer = T*
 The type of the pointer.
 
template<class U>
using rebind = U*
 A pointer to U.
 

Static Public Member Functions

static constexpr auto pointer_to (pointer_traits_detail::pointer_to_arg_t< element_type > element) noexcept -> pointer
 Return a pointer to the given element.
 

Detailed Description

template<class T>
class std::pointer_traits< T * >

pointer_traits specialization to handle raw pointer types.

Member Typedef Documentation

◆ difference_type

template<class T>
using std::pointer_traits< T * >::difference_type = ptrdiff_t

The type used to represent the difference between two pointers.

◆ element_type

template<class T>
using std::pointer_traits< T * >::element_type = T

The type of the element that is pointed to.

◆ pointer

template<class T>
using std::pointer_traits< T * >::pointer = T*

The type of the pointer.

◆ rebind

template<class T>
template<class U>
using std::pointer_traits< T * >::rebind = U*

A pointer to U.

Template Parameters
UThe new element type

Member Function Documentation

◆ pointer_to()

template<class T>
static constexpr auto std::pointer_traits< T * >::pointer_to ( pointer_traits_detail::pointer_to_arg_t< element_type > element) -> pointer
inlinestaticconstexprnoexcept

Return a pointer to the given element.

Parameters
elementThe element to get a pointer to
Returns
A pointer to the input element

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