BloombergLP::bdlc::operator<=

Return true if lhs precedes or equals rhs.

Synopsis

Declared in <bdlc_packedintarray.h>

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

Description

Return true if the specified lhs has a value less than or equal to the specified rhs, false' otherwise. An iterator has a value less than or equal to another if its index is less or equal the other's index. The behavior is undefined unless lhs and rhs refer to the same array.

Specializations

NameDescription
operator<=<> Return whether the left iterator precedes or equals the right (see free operator<=).

Return Value

true if lhs precedes or equals rhs, and false otherwise

Parameters

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