BloombergLP::bdlb::operator>=

Return whether the left-hand operand is after or equal to the right.

Synopsis

Declared in <bdlb_nullableallocatedvalue.h>

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator>=(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    bsl::optional<RHS_TYPE> const& rhs);

Description

If neither of the specified lhs and rhs contain a value, return true. If lhs contains a value, and rhs does not, return true. If lhs does not contains a value, rhs does, return false. Otherwise, return lhs.value >= rhs.value().

Return Value

true if lhs is ordered after or equal to rhs, and false otherwise

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand