[#BloombergLP-bslstl-Optional_DataImp-2constructor-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_DataImp.adoc[Optional&lowbar;DataImp]::Optional&lowbar;DataImp
:relfileprefix: ../../../
:mrdocs:

Create an `Optional&lowbar;DataImp` object, which contains the result of invocation of the specified `invocable` with the specified `arg`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;optional&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;INVOCABLE,
    class t&lowbar;ARG&gt;
Optional&lowbar;DataImp(
    xref:BloombergLP/bslstl/Optional_InvokeConstructorTag.adoc[Optional&lowbar;InvokeConstructorTag] tag,
    t&lowbar;INVOCABLE&& invocable,
    t&lowbar;ARG&& arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| tag selecting this constructor overload
| *invocable*
| callable invoked to produce the contained value
| *arg*
| argument forwarded to construct the contained value
|===


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