[#BloombergLP-bslalg-FunctorAdapter_FunctionPointer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::FunctorAdapter&lowbar;FunctionPointer
:relfileprefix: ../../
:mrdocs:

This class provides a functor that delegates to a function pointer&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;functoradapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FUNCTION&lowbar;POINTER&gt;
class FunctorAdapter&lowbar;FunctionPointer;
----

== Description

This class provides a functor that delegates to the function referred to by a function pointer supplied on construction&period; Delegation is supported through the conversion operator, which implicitly returns a reference to the parameterized `FUNCTION&lowbar;POINTER`&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/FunctorAdapter_FunctionPointer/2constructor.adoc[`FunctorAdapter&lowbar;FunctionPointer`]         [.small]#[constructor]#
| Create a `FunctorAdapter&lowbar;FunctionPointer` object that will delegate to the function referred to by the specified `functionPtr`&period;
| xref:BloombergLP/bslalg/FunctorAdapter_FunctionPointer/2conversion-07.adoc[`operator FUNCTION&lowbar;POINTER&`] 
| Convert this object to the parameterized `FUNCTION&lowbar;POINTER` by returning the function pointer supplied on construction&period;
| xref:BloombergLP/bslalg/FunctorAdapter_FunctionPointer/2conversion-00.adoc[`operator FUNCTION&lowbar;POINTER const&`] 
| Convert this object to the parameterized `FUNCTION&lowbar;POINTER` by returning the function pointer supplied on construction&period;
|===



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