mirror of
https://github.com/TartanLlama/optional.git
synced 2025-07-31 18:34:26 +02:00
MSVC
This commit is contained in:
@@ -723,7 +723,7 @@ public:
|
|||||||
|
|
||||||
/// \returns `rhs` if `*this` is empty, otherwise the current value.
|
/// \returns `rhs` if `*this` is empty, otherwise the current value.
|
||||||
/// \group disjunction
|
/// \group disjunction
|
||||||
constexpr optional disjunction (const optional &rhs) & {
|
TL_OPTIONAL_11_CONSTEXPR optional disjunction (const optional &rhs) & {
|
||||||
return has_value() ? *this : rhs;
|
return has_value() ? *this : rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -733,7 +733,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// \group disjunction
|
/// \group disjunction
|
||||||
constexpr optional disjunction (const optional &rhs) && {
|
TL_OPTIONAL_11_CONSTEXPR optional disjunction (const optional &rhs) && {
|
||||||
return has_value() ? std::move(*this) : rhs;
|
return has_value() ? std::move(*this) : rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -743,7 +743,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// \group disjunction
|
/// \group disjunction
|
||||||
constexpr optional disjunction (optional &&rhs) & {
|
TL_OPTIONAL_11_CONSTEXPR optional disjunction (optional &&rhs) & {
|
||||||
return has_value() ? *this : std::move(rhs);
|
return has_value() ? *this : std::move(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -753,7 +753,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// \group disjunction
|
/// \group disjunction
|
||||||
constexpr optional disjunction (optional &&rhs) && {
|
TL_OPTIONAL_11_CONSTEXPR optional disjunction (optional &&rhs) && {
|
||||||
return has_value() ? std::move(*this) : std::move(rhs);
|
return has_value() ? std::move(*this) : std::move(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user