BloombergLP::bdlc::operator<=

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

Synopsis

Declared in <bdlc_compactedarray.h>

template<class TYPE>
bool
operator<=(
    CompactedArray_ConstIterator<TYPE> const& lhs,
    CompactedArray_ConstIterator<TYPE> const& rhs);

Description

Iterator lhs has a value less than or equal to iterator rhs if 0 <= rhs - lhs (see operator-). The behavior is undefined unless lhs and rhs refer to the same array.

Return Value

true if lhs is less than or equal to rhs, and false otherwise

Parameters

NameDescription
lhsleft-hand-side iterator
rhsright-hand-side iterator