Is there a standard C++ function, that is analogue to Address-of operator &?

c++, functor, memory-address, stl

Solution

`std::addressof` could suit your purpose. Note that the behaviour is slightly different to plain `operator&` if the type has an overload for that operator.

Problem

Is there a standard C++ function, that is analogue to Address-of operator &, that I can use as a function object with stl entities like std::transform and std::compose1?

Original source