BloombergLP::bsls::Util::addressOf

addressOf overloads

Synopses

Declared in <bsls_util.h>

Return the address of the specified obj.

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

Return the address of the specified function fn.

template<class RESULT>
static
RESULT(*
addressOf(RESULT(& fn)()))();
» more...

Return the address of the specified function fn.

template<
    class RESULT,
    class ARG>
static
RESULT(*
addressOf(RESULT(& fn)(ARG)))(ARG);
» more...

Return the address of the specified function fn.

template<
    class RESULT,
    class ARG1,
    class ARG2>
static
RESULT(*
addressOf(RESULT(& fn)(ARG1, ARG2)))(ARG1, ARG2);
» more...

Return Value

  • address of obj
  • address of fn

Parameters

NameDescription
objobject whose address is returned
fnfunction whose address is returned