23
General utilities library
[utilities]
23.10
Memory
[memory]
23.10.10
Specialized algorithms
[specialized.algorithms]
23.10.10.1
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
.