addressOf overloads
Synopses
Declared in <bsls_util.h>
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 20.6.12.1[specialized.addressof] of the C++11 standard, except that function types, which are not object types, are supported by std::addressof in C++11.
template<class TYPE>
static
TYPE*
addressOf(TYPE& obj);
Return the address of the specified function fn. Note that this implementation supports functions of only a limited number of parameters, determined by the current needs of the BDE software. A more general form that will support an arbitrary number of function parameters will be available with C++11.
template<class RESULT>
static
RESULT(*
addressOf(RESULT(& fn)()))();
Return the address of the specified function fn.
template<
class RESULT,
class ARG>
static
RESULT(*
addressOf(RESULT(& fn)(ARG)))(ARG);
Return the address of the specified function fn. Note that this implementation supports functions of only a limited number of parameters, determined by the current needs of the BDE software.
template<
class RESULT,
class ARG1,
class ARG2>
static
RESULT(*
addressOf(RESULT(& fn)(ARG1, ARG2)))(ARG1, ARG2);
Created with MrDocs