Go to the documentation of this file.
19 #ifndef MIR_OPTIONAL_VALUE_H_
20 #define MIR_OPTIONAL_VALUE_H_
41 bool is_set()
const {
return is_set_; }
59 return std::move(value_);
68 void die_if_unset()
const
72 (*fatal_error)(
"Accessing value of unset optional");
103 return !(lhs == rhs);
optional_value(T const &value)
Definition: optional_value.h:32
T & value()
Definition: optional_value.h:49
Definition: optional_value.h:29
Definition: splash_session.h:24
T && consume()
Definition: optional_value.h:55
optional_value & operator=(T const &value)
Definition: optional_value.h:34
constexpr bool operator==(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:47
constexpr bool operator!=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:53
bool is_set() const
Definition: optional_value.h:41
T const & value() const
Definition: optional_value.h:43
Copyright © 2012-2020
Canonical Ltd.
Generated on Sun Oct 4 22:38:34 UTC 2020
This documentation is licensed under the GPL version 2 or 3.