[#BloombergLP-balcl-OptionValue-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]::OptionValue
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;balcl&lowbar;optionvalue&period;h&gt;`

Create a command&hyphen;line&hyphen;option value object in the unset state (i&period;e&period;, `OptionType&colon;&colon;e&lowbar;VOID &equals;&equals; type()`)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is not specified, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionValue/2constructor-02.adoc[OptionValue]();
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object in the unset state (i&period;e&period;, `OptionType&colon;&colon;e&lowbar;VOID &equals;&equals; type()`), using the specified `basicAllocator` to supply memory&period; Note that (atypically) this constructor disallows 0 for `basicAllocator`&semi; invoking the constructor with 0 dispatches to the constructor overload that explicitly accepts an `int` value for its first argument (see below)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0f.adoc[OptionValue](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-04.adoc[OptionValue](
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-04.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0aa.adoc[OptionValue](
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0aa.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the type corresponding to the specified `type` and, if `OptionType&colon;&colon;e&lowbar;VOID !&equals; type`, having the default value of that type&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionValue/2constructor-057.adoc[OptionValue](
    xref:BloombergLP/balcl/OptionType/Enum.adoc[OptionType::Enum] type,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-057.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-08c.adoc[OptionValue](
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-08c.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0a9.adoc[OptionValue](
    xref:BloombergLP/bdlt/Time.adoc[bdlt::Time] value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0a9.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the type and value of the specified `value`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-03.adoc[OptionValue](
    bool value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-01.adoc[OptionValue](
    char value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0b4.adoc[OptionValue](
    double value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0b4.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0d.adoc[OptionValue](
    int value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a `OptionValue` object having the same value as the specified `original` object&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionValue/2constructor-0ad.adoc[OptionValue](
    xref:BloombergLP/balcl/OptionValue.adoc[OptionValue] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0ad.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-08e6.adoc[OptionValue](
    xref:bsl/string.adoc[bsl::string] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-08e6.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-06.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Date&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the type and value of the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0bd.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Datetime&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0bd.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-08e4.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsls::Types::Int64&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-08e4.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-07.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Time&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-07.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-050.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-050.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-05d.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;double&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-05d.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-0ac.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;int&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-0ac.adoc[_» more&period;&period;&period;_]#

Create a command&hyphen;line&hyphen;option value object having the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balcl/OptionValue/2constructor-08b.adoc[OptionValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::string&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balcl/OptionValue/2constructor-08b.adoc[_» more&period;&period;&period;_]#


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