std::addressof
From cppreference.com
Template:cpp/memory/new/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<memory>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">template< class T >
T* addressof(T& arg);
</td>
T* addressof(T& arg);
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Obtains the actual address of the object or function arg
, even in presence of overloaded operator&
Contents |
Parameters
arg | - | lvalue object or function |
Return value
Pointer to arg
.
Exceptions
noexcept specification:
noexcept