This class implements a special‐use value‐semantic variant type used to represent values parsed from process command lines. Accordingly, this class can represent values of any of the types defined in balcl_optiontype. Furthermore, that value can also be in a null state (defined type but no defined value) to represent allowed options that do not appear among the command‐line arguments (and for which no default value has been configured).
Synopsis
Declared in <balcl_optionvalue.h>
class OptionValue;
Member Functions
Name |
Description |
|
Constructors |
Assign to this object the value of the specified |
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the currently installed default allocator is used. |
|
Return |
|
Return |
|
Write the value of this object to the specified output |
|
Reset this object to its default constructed (unset) state. The existing value, if any, is destroyed. Note that on return |
|
Set the value of this object to the specified |
|
Set the value of this object, irrespective of that value's type, to its null state. The behavior is undefined unless |
|
Set the type of this object to the specified |
|
Efficiently exchange the value of this object with the value of the specified |
|
|
|
Return the type of this command‐line‐option value. The type |
|
|
Nested trait declaration for |
Friends
Name |
Description |
Swap the value of the specified |
|
Return |
Non-Member Functions
Name |
Description |
Return |
Created with MrDocs