BloombergLP::balcl::OptionValue::OptionValue

Create a command-line-option value object having the specified type.

Synopsis

Declared in <balcl_optionvalue.h>

OptionValue(
    OptionType::Enum type,
    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

NameDescription
typeoption type for the value
basicAllocatormemory allocator; null uses the default