Less‐than operators

Synopses

Declared in <bdlc_compactedarray.h>

Return whether the left iterator precedes the right (see free operator<).

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

Return true if lhs precedes rhs in the referenced array.

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

Return whether the left iterator precedes the right (see free operator<).

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

Return true if lhs is less than rhs.

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

Return true if the value stored in lhs is less than rhs.

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

Return true if lhs is less than the value stored in rhs.

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

Return Value

  • true if lhs precedes rhs, and false otherwise

  • true if lhs is less than rhs, and false otherwise

  • true if the value in lhs is less than rhs, and false otherwise

  • true if lhs is less than the value in rhs, and false otherwise

Parameters

Name

Description

lhs

left‐hand‐side iterator

rhs

right‐hand‐side iterator

Created with MrDocs