Determines whether two bounded ranges are equal.
Declared in <absl/algorithm/algorithm.h>
template<
class InputIt1,
class InputIt2>
[[deprecated]]
constexpr
bool
equal(
InputIt1 first1,
InputIt1 last1,
InputIt2 first2,
InputIt2 last2);
Deprecated. Use of this entity is allowed but discouraged.
Compares the elements in the range [first1, last1)] with the range [first2, last2)], using operator==.
true if the two ranges have equal length and compare element-wise equal.
| Name | Description |
|---|---|
| first1 | Iterator to the first element of the first range. |
| last1 | Iterator one past the last element of the first range. |
| first2 | Iterator to the first element of the second range. |
| last2 | Iterator one past the last element of the second range. |