20
General utilities library
[utilities]
20.10
Memory
[memory]
20.10.11
addressof
[specialized.addressof]
🔗
template
<
class
T
>
constexpr
T
*
addressof
(
T
&
r
)
noexcept
;
1
#
Returns:
The actual address of the object or function referenced by
r
, even in the presence of an overloaded
operator
&
.
2
#
Remarks:
An expression
addressof
(
E
)
is a constant subexpression (
[defns.const.subexpr]
) if
E
is an lvalue constant subexpression
.