mrdocs::operator>
Greater‐than operators
Synopses
Declared in <mrdocs/ADT/Optional.hpp>
Checks if the left Optional is greater than the right Optional. Returns true if the left is engaged and either the right is disengaged or its value is greater.
template<
typename T,
typename U>
constexpr
/* implementation-defined */
operator>(
Optional<T> const& lhs,
Optional<U> const& rhs);
Checks if the Optional is greater than a value. Returns true if the Optional is engaged and its value is greater than rhs.
template<
typename T,
typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator>(
Optional<T> const& lhs,
U const& rhs);
Checks if a value is greater than an Optional. Returns true if the Optional is disengaged or lhs is greater than its value.
template<
typename T,
typename U>
requires (!detail::isOptionalV<T>)
constexpr
/* implementation-defined */
operator>(
T const& lhs,
Optional<U> const& rhs);
Return Value
-
trueiflhsis greater thanrhsaccording to the described rules; otherwise,false. -
trueif the optional is engaged and greater thanrhs; otherwise,false. -
trueif the optional is disengaged orlhsis greater than its value; otherwise,false.
Created with MrDocs