[#BloombergLP-bsls-Util-addressOf-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Util.adoc[Util]::addressOf
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

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

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

== Description

Note that this implementation supports functions of only a limited number of parameters, determined by the current needs of the BDE software&period; A more general form that will support an arbitrary number of function parameters will be available with C&plus;&plus;11&period;

== Return Value

address of `fn`

== Parameters

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


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