20
General utilities library
[utilities]
20.10
Memory
[memory]
20.10.3
Pointer traits
[pointer.traits]
20.10.3.3
Optional members
[pointer.traits.optmem]
1
#
Specializations of
pointer_traits
may define the member declared in this subclause to customize the behavior of the standard library
.
🔗
static
element_type
*
to_address
(
pointer p
)
noexcept
;
2
#
Returns:
A pointer of type
element_type
*
that references the same location as the argument
p
.
3
#
[
Note
:
This function should be the inverse of
pointer_to
.
If defined, it customizes the behavior of the non-member function
to_address
(
[pointer.conversion]
)
.
—
end note
]