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);
Definition optional_value.h:29
T && consume()
Definition optional_value.h:55
optional_value(T const &value)
Definition optional_value.h:32
optional_value & operator=(T const &value)
Definition optional_value.h:34
bool is_set() const
Definition optional_value.h:41
T & value()
Definition optional_value.h:49
T const & value() const
Definition optional_value.h:43
Definition splash_session.h:24
constexpr bool operator!=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:53
constexpr bool operator==(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:47
Copyright © 2012-2026
Canonical Ltd.
Generated on Sun Mar 15 06:10:58 UTC 2026
This documentation is licensed under the GPL version 2 or 3.