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]
1
#
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
;
2
#
Returns
: A pointer of type
element_
type
*
that references the same location as the argument
p
.
3
#
[
Note
1
:
This function is intended to be the inverse of
pointer_
to
.
If defined, it customizes the behavior of the non-member function
to_
address
(
[pointer.
conversion]
)
.
—
end note
]