Constructors
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...
| Name | Description |
|---|---|
| basicAllocator | memory allocator; null uses the default |
| original | object providing the value to copy |
| optionInfo | option descriptor providing the value |