BloombergLP::balcl::Option::Option

Create a command-line option from the specified optionInfo.

Synopsis

Declared in <balcl_option.h>

explicit
Option(
    OptionInfo const& optionInfo,
    bslma::Allocator* basicAllocator = 0);

Description

Create a command-line option containing the value of the specified optionInfo. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
optionInfooption descriptor providing the value
basicAllocatormemory allocator; null uses the default