◆ alternative() [1/3]
◆ alternative() [2/3]
Constructs from none (empty state)
- Parameters
-
n | none value indicating empty state |
- Postcondition
- hasValue() == false
◆ alternative() [3/3]
Constructs with value present.
- Parameters
-
t | std::in_place_t tag to indicate value should be present |
- Postcondition
- hasValue() == true
◆ hasValue()
Checks if contains a value.
- Returns
- true if contains value, false if empty
◆ operator bool()
Boolean conversion operator.
- Returns
- true if contains value, false if empty
◆ reset()
Resets to empty state.
- Postcondition
- hasValue() == false
◆ set()
Sets the alternative to have a value.
- Postcondition
- hasValue() == true
The documentation for this class was generated from the following file: