[#absl-equal-0b]
= xref:absl.adoc[absl]::equal
:relfileprefix: ../
:mrdocs:

`equal` overloads

== Synopses

Declared in `&lt;absl&sol;algorithm&sol;algorithm&period;h&gt;`

Determines whether two ranges are equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class InputIt1,
    class InputIt2&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
bool
xref:absl/equal-0c.adoc[equal](
    InputIt1 first1,
    InputIt1 last1,
    InputIt2 first2);
----

[.small]#xref:absl/equal-0c.adoc[_» more&period;&period;&period;_]#

Determines whether two bounded ranges are equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class InputIt1,
    class InputIt2&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
bool
xref:absl/equal-099.adoc[equal](
    InputIt1 first1,
    InputIt1 last1,
    InputIt2 first2,
    InputIt2 last2);
----

[.small]#xref:absl/equal-099.adoc[_» more&period;&period;&period;_]#

Determines whether two ranges are equal using a custom predicate&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class InputIt1,
    class InputIt2,
    class BinaryPredicate&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
bool
xref:absl/equal-07.adoc[equal](
    InputIt1 first1,
    InputIt1 last1,
    InputIt2 first2,
    BinaryPredicate p);
----

[.small]#xref:absl/equal-07.adoc[_» more&period;&period;&period;_]#

Determines whether two bounded ranges are equal using a custom predicate&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class InputIt1,
    class InputIt2,
    class BinaryPredicate&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
bool
xref:absl/equal-09e.adoc[equal](
    InputIt1 first1,
    InputIt1 last1,
    InputIt2 first2,
    InputIt2 last2,
    BinaryPredicate p);
----

[.small]#xref:absl/equal-09e.adoc[_» more&period;&period;&period;_]#

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

* `true` if the two ranges compare element&hyphen;wise equal&period;
* `true` if the two ranges have equal length and compare element&hyphen;wise equal&period;
* `true` if every compared pair of elements satisfies `p`&period;
* `true` if the two ranges have equal length and every compared pair of elements satisfies `p`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first1*
| Iterator to the first element of the first range&period;
| *last1*
| Iterator one past the last element of the first range&period;
| *first2*
| Iterator to the first element of the second range&period;
| *last2*
| Iterator one past the last element of the second range&period;
| *p*
| Binary predicate used to compare corresponding elements&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
