BloombergLP::bdlc::operator<

Return true if lhs precedes rhs in the referenced array.

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 the specified rhs, false otherwise. An iterator has a value less than another if its index is less 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 the right (see free operator<).

Return Value

true if lhs precedes rhs, and false otherwise

Parameters

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