[#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 `&lt;bsls&lowbar;util&period;h&gt;`

Return the address of the specified `obj`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
TYPE*
xref:BloombergLP/bsls/Util/addressOf-08.adoc[addressOf](TYPE& obj);
----

[.small]#xref:BloombergLP/bsls/Util/addressOf-08.adoc[_» more&period;&period;&period;_]#

Return the address of the specified function `fn`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RESULT&gt;
static
RESULT(*
xref:BloombergLP/bsls/Util/addressOf-0f.adoc[addressOf](RESULT(& fn)()))();
----

[.small]#xref:BloombergLP/bsls/Util/addressOf-0f.adoc[_» more&period;&period;&period;_]#

Return the address of the specified function `fn`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RESULT,
    class ARG&gt;
static
RESULT(*
xref:BloombergLP/bsls/Util/addressOf-0c.adoc[addressOf](RESULT(& fn)(ARG)))(ARG);
----

[.small]#xref:BloombergLP/bsls/Util/addressOf-0c.adoc[_» more&period;&period;&period;_]#

Return the address of the specified function `fn`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RESULT,
    class ARG1,
    class ARG2&gt;
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&period;&period;&period;_]#

== Return Value

* address of `obj`
* address of `fn`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *obj*
| object whose address is returned
| *fn*
| function whose address is returned
|===


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