Return true if lhs is greater than or equal to rhs.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_HEAD,
    class... t_TAIL>
bool
operator>=(
    variant<t_HEAD, t_TAIL...> const& lhs,
    variant<t_HEAD, t_TAIL...> const& rhs);

Description

Return true if the index of the active alternative in the specified lhs is greater than that of the specified rhs, or if both have the same active alternative and the contained value of lhs compares greater than or equal to that of rhs, or if rhs is valueless by exception; otherwise, return false. All alternatives shall support operator>=.

Return Value

true if lhs is greater than or equal to rhs

Parameters

Name

Description

lhs

variant to compare

rhs

variant to compare

Created with MrDocs