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

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;

== Synopsis

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

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

== Description

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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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