pointer address( reference x ) const; | (until C++11) | |
pointer address( reference x ) const noexcept; | (since C++11) (deprecated in C++17) (removed in C++20) | |
const_pointer address( const_reference x ) const; | (until C++11) | |
const_pointer address( const_reference x ) const noexcept; | (since C++11) (deprecated in C++17) (removed in C++20) |
Returns the actual address of x
even in presence of overloaded operator&
.
x | - | the object to acquire address of |
The actual address of x
.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/allocator/address