We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
value_or()
1 parent 34e2a63 commit 3742b25Copy full SHA for 3742b25
src/librawspeed/adt/Optional.h
@@ -87,6 +87,10 @@ template <typename T> class Optional final {
87
88
explicit operator bool() const { return has_value(); }
89
90
+ template <typename U> T value_or(U&& fallback) const& {
91
+ return impl.value_or(std::forward<U>(fallback));
92
+ }
93
+
94
void reset() { impl.reset(); }
95
};
96
0 commit comments