Constructors
Synopses
Declared in <balcl_option.h>
Create a default (empty) command‐line option.
Option();
Create a default (empty) command‐line option using the specified basicAllocator to supply memory.
explicit
Option(bslma::Allocator* basicAllocator);
Create an Option having the same value as original.
Option(
Option const& original,
bslma::Allocator* basicAllocator = 0);
Create a command‐line option from the specified optionInfo.
explicit
Option(
OptionInfo const& optionInfo,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
original |
object providing the value to copy |
optionInfo |
option descriptor providing the value |
Created with MrDocs