equal overloads
Declared in <bslalg_rangecompare.h>
Return whether two ranges of equal length compare element-wise equal.
template<class INPUT_ITER>
static
bool
equal(
INPUT_ITER start1,
INPUT_ITER end1,
INPUT_ITER start2);
» more...
Return whether two ranges have the same length and compare equal.
template<class INPUT_ITER>
static
bool
equal(
INPUT_ITER start1,
INPUT_ITER end1,
INPUT_ITER start2,
INPUT_ITER end2);
» more...
Same as the preceding equal overload, taking explicit range lengths.
template<class INPUT_ITER>
static
bool
equal(
INPUT_ITER start1,
INPUT_ITER end1,
size_type length1,
INPUT_ITER start2,
INPUT_ITER end2,
size_type length2);
» more...
true if every corresponding pair of elements compares equal, and false otherwisetrue if the ranges have the same length and compare equal, and false otherwise| Name | Description |
|---|---|
| start1 | beginning of the first range |
| end1 | end of the first range (one past the last element) |
| start2 | beginning of the second range |
| end2 | end of the second range (one past the last element) |
| length1 | length of the first range |
| length2 | length of the second range |