mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
parent
53fcdedb88
commit
00667cecf9
7 changed files with 472 additions and 192 deletions
|
@ -35,6 +35,7 @@ class Optional {
|
|||
: value_{std::move(value)}, valid_{true} {}
|
||||
|
||||
bool is_valid() const { return valid_; }
|
||||
operator bool() const { return valid_; }
|
||||
|
||||
// TODO: Throw if not valid?
|
||||
T& value() & { return value_; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue