[#absl-equal-07] = xref:absl.adoc[absl]::equal :relfileprefix: ../ :mrdocs: Determines whether two ranges are equal using a custom predicate. == Synopsis Declared in `<absl/algorithm/algorithm.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class InputIt1, class InputIt2, class BinaryPredicate> [[deprecated]] constexpr bool equal( InputIt1 first1, InputIt1 last1, InputIt2 first2, BinaryPredicate p); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[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 the binary predicate `p`. == Return Value `true` if every compared pair of elements satisfies `p`. == Parameters [cols="1,4"] |=== | 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. | *p* | Binary predicate used to compare corresponding elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#