BloombergLP::balcl::OptionValue::OptionValue

Create a command-line-option value object in the unset state (i.e., OptionType::e_VOID == type()), using the specified basicAllocator to supply memory.

Synopsis

Declared in <balcl_optionvalue.h>

explicit
OptionValue(bslma::Allocator* basicAllocator);

Description

Note that (atypically) this constructor disallows 0 for basicAllocator; invoking the constructor with 0 dispatches to the constructor overload that explicitly accepts an int value for its first argument (see below).

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default