The C++11 std::addressof utility solves a very simple problem.
How do you obtain the actual address of an object when the built-in address-of operator can be overloaded?
Compiler Explorer link: https://compiler-explorer.com/z/PjqTPTKWe
@simontoth what would be a use case of overloading the built-in address-of operator? I can't really think of anything off the top of my head....
@niq Proxy objects, returning the address of the proxied object.
@simontoth makes sense. Thanks!