|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
(C++11) | ||||
pointer_traits::to_address (C++20)(optional) |
Defined in header <memory> | ||
static element_type* to_address( pointer p)noexcept; | (since C++20) (optional member of program-defined specialization) | |
Constructs a raw pointer that references the same object as its pointer-like ("fancy pointer") argument.
This function, if defined, is the inverse ofpointer_to, and exists as the customization point to be called bystd::to_address.
| p | - | fancy pointer/pointer-like object |
A raw pointer of the typeelement_type* that references the same memory location as the argumentp.
[static] | obtains a dereferenceable pointer to its argument (public static member function)[edit] |
(C++20) | obtains a raw pointer from a pointer-like type (function template)[edit] |