BloombergLP::bsls::Util::addressOf

Return the address of the specified obj, even if operator& is overloaded for objects of type BSLS_TYPE. Behavior is undefined unless BSLS_TYPE is an object type. Note that this function conforms to the C++11 definition for addressof as specified in the section specialized.addressof of the C++11 standard, except that function types, which are not object types, are supported by std::addressof in C++11.

Synopsis

Declared in <bsls_util.h>

template<class TYPE>
static
TYPE*
addressOf(TYPE& obj);