absl::equal

Determines whether two ranges are equal.

Synopsis

Declared in <absl/algorithm/algorithm.h>

template<
    class InputIt1,
    class InputIt2>
[[deprecated]]
constexpr
bool
equal(
    InputIt1 first1,
    InputIt1 last1,
    InputIt2 first2);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Compares the elements in the range [first1, last1)] with the range beginning at first2, using operator==.

Return Value

true if the two ranges compare element-wise equal.

Parameters

NameDescription
first1Iterator to the first element of the first range.
last1Iterator one past the last element of the first range.
first2Iterator to the first element of the second range.