[#beman-optional-optional-03-2constructor-02a]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::optional
:relfileprefix: ../../../
:mrdocs:

Constructs the value in&hyphen;place using the given arguments&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
constexpr
explicit
optional(
    xref:beman/optional/in_place_t.adoc[in&lowbar;place&lowbar;t] tag,
    Args&&&period;&period;&period; args)
requires std&colon;&colon;is&lowbar;constructible&lowbar;v&lt;T, Args&period;&period;&period;&gt;;
----

== Description

Constructs the contained value in&hyphen;place using the given arguments&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| The in&hyphen;place construction tag&period;
| *args*
| The arguments to use for in&hyphen;place construction&period;
|===


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