1.3 KiB
1.3 KiB
[pointer.traits.optmem]
20 Memory management library [mem]
20.2 Memory [memory]
20.2.3 Pointer traits [pointer.traits]
20.2.3.4 Optional members [pointer.traits.optmem]
Specializations of pointer_traits may define the member declared in this subclause to customize the behavior of the standard library.
A specialization generated from the pointer_traits primary template has no member by this name.
static element_type* to_address(pointer p) noexcept;
Returns: A pointer of type element_type* that references the same location as the argument p.
[Note 1:
This function is intended to be the inverse of pointer_to.
If defined, it customizes the behavior of the non-member functionto_address ([pointer.conversion]).
â end note]