[#BloombergLP-bsls-Util-addressOf-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Util.adoc[Util]::addressOf :relfileprefix: ../../../ :mrdocs: `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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static TYPE* xref:BloombergLP/bsls/Util/addressOf-08.adoc[addressOf](TYPE& obj); ---- [.small]#xref:BloombergLP/bsls/Util/addressOf-08.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class RESULT> static RESULT(* xref:BloombergLP/bsls/Util/addressOf-0f.adoc[addressOf](RESULT(& fn)()))(); ---- [.small]#xref:BloombergLP/bsls/Util/addressOf-0f.adoc[_» more..._]# Return the address of the specified function `fn`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RESULT, class ARG> static RESULT(* xref:BloombergLP/bsls/Util/addressOf-0c.adoc[addressOf](RESULT(& fn)(ARG)))(ARG); ---- [.small]#xref:BloombergLP/bsls/Util/addressOf-0c.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RESULT, class ARG1, class ARG2> static RESULT(* xref:BloombergLP/bsls/Util/addressOf-0b.adoc[addressOf](RESULT(& fn)(ARG1, ARG2)))(ARG1, ARG2); ---- [.small]#xref:BloombergLP/bsls/Util/addressOf-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#