tetl 0.1.0
Embedded Template Library
|
The pointer_traits class template provides the standardized way to access certain properties of pointer-like types. More...
#include <pointer_traits.hpp>
Public Types | |
using | difference_type = etl::ptrdiff_t |
using | element_type = T |
using | pointer = T * |
template<typename U > | |
using | rebind = U * |
Static Public Member Functions | |
static auto | pointer_to (T &r) -> pointer requires(not etl::is_void_v< T >) |
Constructs a dereferenceable pointer or pointer-like object ("fancy pointer") to its argument. | |
The pointer_traits class template provides the standardized way to access certain properties of pointer-like types.
https://en.cppreference.com/w/cpp/memory/pointer_traits
T | A raw pointer |
Constructs a dereferenceable pointer or pointer-like object ("fancy pointer") to its argument.
https://en.cppreference.com/w/cpp/memory/pointer_traits/pointer_to
r | Reference to an object of type element_type&. |