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

Constructors

== Synopses

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

Create a default (empty) command&hyphen;line option&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/Option/2constructor-07.adoc[Option]();
----

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

Create a default (empty) command&hyphen;line option using the specified `basicAllocator` to supply memory&period;


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

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

Create a `Option` 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/Option/2constructor-04.adoc[Option](
    xref:BloombergLP/balcl/Option.adoc[Option] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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

Create a command&hyphen;line option containing the value of the specified `optionInfo`&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/Option/2constructor-08.adoc[Option](
    xref:BloombergLP/balcl/OptionInfo.adoc[OptionInfo] const& optionInfo,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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


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