Allocator‐aware nullable wrapper for an object of type t_TYPE.
Synopsis
Declared in <bslstl_optional.h>
template<class t_TYPE>
class optional
: public BloombergLP::bslstl::Optional_Base<t_TYPE>
Base Classes
Name |
Description |
Component‐private class template implementing |
Type Aliases
Name |
Description |
This |
|
Alias for the managed object type of this optional. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
Destroy any contained value and construct a new one in place. |
|
Return allocator used for construction of |
|
Return |
|
Dereference operators |
|
Member access operators |
|
Return this optional if engaged; otherwise invoke |
|
Reset this object to the default constructed state (i.e., to a disengaged state). |
|
Exchange the values of two optionals. |
|
|
|
|
|
Return the contained value, or a converted fallback if disengaged. |
|
Nested trait declaration for |
|
Nested trait declaration for |
|
|
Nested trait declaration for |
|
Nested trait declaration for |
Nested trait declaration for |
|
Nested trait declaration for |
|
Nested trait declaration for |
|
Nested trait declaration for |
|
Return |
Protected Type Aliases
Name |
Description |
This |
Protected Member Functions
Name |
Description |
Assign or emplace a value into this optional. |
|
Return a reference to the contained value without checking engagement. |
Deduction Guides
Name |
Description |
Deduce the specified type |
|
Deduce |
|
Deduce |
Friends
Name |
Description |
|
Allocator‐aware nullable wrapper for an object of type |
Non-Member Functions
Name |
Description |
Write the specified |
|
Return an |
|
Return an |
|
Return an |
|
Return an |
|
Return an |
|
Return an |
|
Return an |
|
Return whether the operands do not have the same value. |
|
Return whether the operands do not have the same value. |
|
Return whether the operands do not have the same value. |
|
Return whether the left‐hand operand is ordered before the right. |
|
Return whether the left‐hand operand is ordered before the right. |
|
Return whether the left‐hand operand is ordered before the right. |
|
Return whether the left‐hand operand is before or equal to the right. |
|
Return whether the left‐hand operand is before or equal to the right. |
|
Return whether the left‐hand operand is before or equal to the right. |
|
Perform a three‐way comparison of the operands. |
|
Perform a three‐way comparison of the operands. |
|
Perform a three‐way comparison of the operands. |
|
Perform a three‐way comparison of the operands. |
|
Return whether the operands have the same value. |
|
Return whether the operands have the same value. |
|
Compare a |
|
Return whether the operands have the same value. |
|
Return whether the left‐hand operand is ordered after the right. |
|
Return whether the left‐hand operand is ordered after the right. |
|
Return whether the left‐hand operand is ordered after the right. |
|
Return whether the left‐hand operand is after or equal to the right. |
|
Return whether the left‐hand operand is after or equal to the right. |
|
Return whether the left‐hand operand is after or equal to the right. |
|
Exchange the values of two optionals. |
|
Exchange the values of two optionals. |
|
Exchange the values of two optionals. |
|
|
Component‐private constraint helper for |
|
Return |
|
Return |
|
Return |
|
Return whether the left‐hand operand is ordered before the right. |
|
Return whether the left‐hand operand is before or equal to the right. |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return whether the left‐hand operand is ordered after the right. |
|
Return whether the left‐hand operand is after or equal to the right. |
|
Return |
|
Component‐private constraint helper for |
Derived Classes
Name |
Description |
Value‐semantic wrapper that adds a null state to |
Created with MrDocs