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?
Is there a standard C++ function, that is analogue to Address-of operator &, that
Share
std::addressofcould suit your purpose. Note that the behaviour is slightly different to plainoperator&if the type has an overload for that operator.