|
|
| Optional (const T &value) |
| |
|
| Optional (T &&value) |
| |
|
| Optional (const Optional &other) |
| |
|
| Optional (Optional &&other) noexcept(std::is_nothrow_move_assignable< T >::value) |
| |
|
constexpr Optional & | operator= (const Optional &other) |
| |
|
constexpr Optional & | operator= (Optional &&other) noexcept(std::is_nothrow_move_assignable< T >::value) |
| |
|
template<typename U = T> |
| constexpr Optional & | operator= (const U &value) |
| |
|
template<typename U = T> |
| constexpr Optional & | operator= (U &&value) |
| |
| template<typename... Args> |
| void | Emplace (Args &&...args) |
| | Construct a new value from the give argument(s) and assign it to the instance value. More...
|
| |
| void | Swap (Optional &other) noexcept(std::is_nothrow_move_assignable< T >::value) |
| | Swap the current instance with another one. More...
|
| |
|
void | Reset () noexcept |
| | Reset the instance value.
|
| |
| constexpr bool | HasValue () const noexcept |
| | Indicate whether the instance has a value or not. More...
|
| |
| constexpr | operator bool () const noexcept |
| |
| const T & | operator* () const & |
| |
| T && | operator* () && |
| |
| const T * | operator-> () const |
| |
| const T & | Value () const & |
| | Get instance possible value. More...
|
| |
| T && | Value () && |
| | Get instance possible value. More...
|
| |
| template<typename U > |
| T | ValueOr (U &&defaultValue) const & |
| | Get the instance value or the default value. More...
|
| |
| template<typename U > |
| T | ValueOr (U &&defaultValue) && |
| | Get the instance value or the default value. More...
|
| |
template<typename T>
class ara::core::Optional< T >
A wrapper around a possible value.
- Template Parameters
-