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 = typename Ptr::difference_type |
using | element_type = typename Ptr::element_type |
using | pointer = Ptr |
Static Public Member Functions | |
static auto | pointer_to (element_type &r) -> pointer |
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.
using difference_type = typename Ptr::difference_type |
using element_type = typename Ptr::element_type |
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&. |