mrdocs::operator>

Checks if the Optional is greater than a value. Returns true if the Optional is engaged and its value is greater than rhs.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<
    typename T,
    typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator>(
    Optional<T> const& lhs,
    U const& rhs);

Return Value

true if the optional is engaged and greater than rhs; otherwise, false.

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs