Return true if lhs precedes rhs in the iteration sequence.

Synopsis

Declared in <bslstl_randomaccessiterator.h>

template<
    class T1,
    class T2,
    class ITER_IMP,
    class TAG_TYPE>
bool
operator<(
    RandomAccessIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
    RandomAccessIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);

Description

Return true if (1) the specified lhs iterator refers to an element before the specified rhs iterator in the iteration sequence, or (2) rhs (and not lhs) has the past‐the‐end value for an iterator over this sequence, and false otherwise. The behavior is undefined unless lhs and rhs are iterators into the same underlying sequence.

Return Value

true if lhs precedes rhs in the iteration sequence, and false otherwise

Parameters

Name

Description

lhs

first iterator to compare

rhs

second iterator to compare

Created with MrDocs