19
General utilities library
[utilities]
19.10
Memory
[memory]
19.10.11
Specialized algorithms
[specialized.algorithms]
19.10.11.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
if
E
is an lvalue constant subexpression
.