Return true if lhs precedes or equals 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 has the same value as the specified rhs iterator, or (2) lhs refers to an element before rhs in the iteration sequence, or (3) rhs 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 or equals rhs in the iteration sequence, and false otherwise
Parameters
Name |
Description |
lhs |
first iterator to compare |
rhs |
second iterator to compare |
Created with MrDocs