Returns the actual address of x
even in presence of overloaded operator&.
x | - | the object to acquire address of |
The actual address of x
.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 634 (N2436) | C++98 | the return value is &x (which is affected by overloaded operator&) | returns 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