Contains xtd::optional type.
Go to the source code of this file.
Namespaces | |
| namespace | xtd |
| The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more. | |
Typedefs | |
| template<typename type_t> | |
| using | xtd::optional |
| Represents the optional alias on std::optional. | |
Functions | |
| template<typename optional_t, typename default_value_t> | |
| optional_t | operator| (const xtd::optional< optional_t > &optional, default_value_t &&default_value) |
| Gets the contained value of specified optional if available; otherwhise the specified default_value. | |
| template<typename optional_t, typename default_value_t> | |
| xtd::optional< optional_t > & | operator|= (xtd::optional< optional_t > &optional, default_value_t &&default_value) |
| Sets the default value if the contained value of specified optional i empty (equal to xtd::nullopt).. | |
| optional_t operator| | ( | const xtd::optional< optional_t > & | optional, |
| default_value_t && | default_value ) |
Gets the contained value of specified optional if available; otherwhise the specified default_value.
| optional | The optional to gets the value. |
| default_value | The default value if optioanl is empty. |
| xtd::optional< optional_t > & operator|= | ( | xtd::optional< optional_t > & | optional, |
| default_value_t && | default_value ) |
Sets the default value if the contained value of specified optional i empty (equal to xtd::nullopt)..
| optional | The optional to sets the value. |
| default_value | The default value to set t optional if optioanl is empty. |