Less-than-or-equal operators
Declared in <bslstl_optional.h>
Return whether the specified stacks compare lexicographically; see the non-member operator<= in the bsl namespace.
template<
class VAL,
class CONT>
bool
operator<=(
stack<VAL, CONT> const& lhs,
stack<VAL, CONT> const& rhs);
» more...
Return whether lhs is lexicographically less than or equal to rhs.
template<
class VALUE,
class CONTAINER>
bool
operator<=(
stack<VALUE, CONTAINER> const& lhs,
stack<VALUE, CONTAINER> const& rhs);
» more...
Return whether the specified queues compare lexicographically; see the non-member operator<= in the bsl namespace.
template<
class VALUE2,
class CONTAINER2>
bool
operator<=(
queue<VALUE2, CONTAINER2> const& lhs,
queue<VALUE2, CONTAINER2> const& rhs);
» more...
Return true if lhs is lexicographically less than or equal to rhs.
template<
class VALUE,
class CONTAINER>
bool
operator<=(
queue<VALUE, CONTAINER> const& lhs,
queue<VALUE, CONTAINER> const& rhs);
» more...
Return true if lhs is less than or equal to rhs.
template<
class t_HEAD,
class... t_TAIL>
bool
operator<=(
variant<t_HEAD, t_TAIL...> const& lhs,
variant<t_HEAD, t_TAIL...> const& rhs);
» more...
Return whether __x is lexicographically <= __y.
template<
class _Tp,
class _Alloc>
bool
operator<=(
slist<_Tp, _Alloc> const& __x,
slist<_Tp, _Alloc> const& __y);
» more...
Return whether the left-hand operand is before or equal to the right.
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator<=(
bsl::optional<t_LHS_TYPE> const& lhs,
bsl::optional<t_RHS_TYPE> const& rhs);
» more...
Return whether the left-hand operand is before or equal to the right.
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator<=(
bsl::optional<t_LHS_TYPE> const& lhs,
t_RHS_TYPE const& rhs);
» more...
Return whether the left-hand operand is before or equal to the right.
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator<=(
t_LHS_TYPE const& lhs,
bsl::optional<t_RHS_TYPE> const& rhs);
» more...
Return whether the left-hand operand is before or equal to the right.
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator<=(
bsl::optional<t_LHS_TYPE> const& lhs,
std::optional<t_RHS_TYPE> const& rhs);
» more...
Compare a std::optional with a bsl::optional using less-than-or-equal.
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator<=(
std::optional<t_LHS_TYPE> const& lhs,
bsl::optional<t_RHS_TYPE> const& rhs);
» more...
true if lhs is lexicographically less than or equal to rhstrue if lhs is lexicographically less than or equal to rhs, otherwise falsetrue if lhs is less than or equal to rhstrue if __x <= __y, and false otherwisetrue if lhs is ordered before or equal to rhs, and false otherwise| Name | Description |
|---|---|
| lhs | left-hand stack operand |
| rhs | right-hand stack operand |
| __x | left-hand list |
| __y | right-hand list |