summaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/optional
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/3rdparty/optional')
-rw-r--r--src/libs/3rdparty/optional/optional.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/3rdparty/optional/optional.hpp b/src/libs/3rdparty/optional/optional.hpp
index 13df7c92ac..607696d8e1 100644
--- a/src/libs/3rdparty/optional/optional.hpp
+++ b/src/libs/3rdparty/optional/optional.hpp
@@ -498,6 +498,7 @@ public:
// 20.5.4.5, Observers
explicit constexpr operator bool() const noexcept { return initialized(); }
+ constexpr bool has_value() const noexcept { return initialized(); }
constexpr T const* operator ->() const {
return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), dataptr());
@@ -693,7 +694,8 @@ public:
explicit constexpr operator bool() const noexcept {
return ref != nullptr;
}
-
+ constexpr bool has_value() const noexcept { return ref != nullptr; }
+
template <class V>
constexpr typename decay<T>::type value_or(V&& v) const
{