[#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 type corresponding to the specified `type` and, if `OptionType::e_VOID != type`, having 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. == 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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#