[#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`, even if `operator&amp;` is overloaded for objects of type `BSLS&lowbar;TYPE`&period; Behavior is undefined unless `BSLS&lowbar;TYPE` is an object type&period; Note that this function conforms to the C&plus;&plus;11 definition for `addressof` as specified in the section 20.6.12.1[specialized&period;addressof] of the C&plus;&plus;11 standard, except that function types, which are not object types, are supported by `std&colon;&colon;addressof` in C&plus;&plus;11&period;

== Synopsis

Declared in `&lt;bsls&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
TYPE*
addressOf(TYPE& obj);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
