[#BloombergLP-balcl-OptionValue-2constructor-057] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]::OptionValue :relfileprefix: ../../../ :mrdocs: Create a command‐line‐option value object having the specified `type`. == Synopsis Declared in `<balcl_optionvalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- OptionValue( xref:BloombergLP/balcl/OptionType/Enum.adoc[OptionType::Enum] type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description If `OptionType::e_VOID != type`, the object has the default value of that type. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *type* | option type for the value | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#