BloombergLP::bslalg::RangeCompare::equal

Same as the preceding equal overload, taking explicit range lengths.

Synopsis

Declared in <bslalg_rangecompare.h>

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);

Return Value

true if the ranges have the same length and compare equal, and false otherwise

Parameters

NameDescription
start1beginning of the first range
end1end of the first range (one past the last element)
length1length of the first range
start2beginning of the second range
end2end of the second range (one past the last element)
length2length of the second range