[#BloombergLP-bdlf-Bind_MemFnObjectWrapper-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlf.adoc[bdlf]::xref:BloombergLP/bdlf/Bind_MemFnObjectWrapper.adoc[Bind&lowbar;MemFnObjectWrapper]::Bind&lowbar;MemFnObjectWrapper
:relfileprefix: ../../../
:mrdocs:

Create a wrapper around the specified object instance&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ARG&lowbar;TYPE&gt;
Bind&lowbar;MemFnObjectWrapper(t&lowbar;ARG&lowbar;TYPE& object);
----

== Description

If the constructor argument has pointer semantics to `t&lowbar;TYPE`, perform `&amp;&ast;` on it to initialize `d&lowbar;object&lowbar;p`&semi; otherwise take its address&period; Note that `t&lowbar;TYPE` and&sol;or `t&lowbar;ARG&lowbar;TYPE` may be `const`, though a compilation error will result if `t&lowbar;ARG&lowbar;TYPE` is `const` and `t&lowbar;TYPE` is not&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object or pointer&hyphen;like object to wrap
|===


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