BloombergLP::balcl::Option::Option

Constructors

Synopses

Declared in <balcl_option.h>

Create a default (empty) command-line option.

Option();
» more...

Create a default (empty) command-line option using the specified basicAllocator to supply memory.

explicit
Option(bslma::Allocator* basicAllocator);
» more...

Create an Option having the same value as original.

Option(
    Option const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a command-line option from the specified optionInfo.

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

Parameters

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