[#BloombergLP-bsls-Util-addressOf-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Util.adoc[Util]::addressOf :relfileprefix: ../../../ :mrdocs: Return the address of the specified `obj`. == Synopsis Declared in `<bsls_util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static TYPE* addressOf(TYPE& obj); ---- == Description 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. == Return Value address of `obj` == Parameters [cols="1,4"] |=== | Name| Description | *obj* | object whose address is returned |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#