[#BloombergLP-bdlf-Overloaded_FunctionPointer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlf.adoc[bdlf]::Overloaded&lowbar;FunctionPointer
:relfileprefix: ../../
:mrdocs:

Overloaded&lowbar;FunctionPointer wraps a function pointer&period; It is implicitly constructible from the pointer, and provides an `operator()` method that calls through to the underlying function&period;

== Synopsis

Declared in `&lt;bdlf&lowbar;overloaded&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET,
    class&period;&period;&period; ARGS&gt;
struct Overloaded&lowbar;FunctionPointer;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlf/Overloaded_FunctionPointer/FpType.adoc[`FpType`] 
| Alias for a free function pointer of the given signature&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlf/Overloaded_FunctionPointer/2constructor.adoc[`Overloaded&lowbar;FunctionPointer`]         [.small]#[constructor]#
| Construct this object from the specified `f`&period;
| xref:BloombergLP/bdlf/Overloaded_FunctionPointer/operator_call.adoc[`operator()`] 
| Call the function passed to the constructor with the specified `args`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlf/Overloaded_FunctionPointer/d_fp.adoc[`d&lowbar;fp`] 
| Free function pointer of the given signature&period;
|===



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