[#BloombergLP-bslalg-RangeCompare-equal-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RangeCompare.adoc[RangeCompare]::equal
:relfileprefix: ../../../
:mrdocs:

`equal` overloads

== Synopses

Declared in `&lt;bslalg&lowbar;rangecompare&period;h&gt;`

Return whether two ranges of equal length compare element&hyphen;wise equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
static
bool
xref:BloombergLP/bslalg/RangeCompare/equal-09.adoc[equal](
    INPUT&lowbar;ITER start1,
    INPUT&lowbar;ITER end1,
    INPUT&lowbar;ITER start2);
----

[.small]#xref:BloombergLP/bslalg/RangeCompare/equal-09.adoc[_» more&period;&period;&period;_]#

Return whether two ranges have the same length and compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
static
bool
xref:BloombergLP/bslalg/RangeCompare/equal-0b.adoc[equal](
    INPUT&lowbar;ITER start1,
    INPUT&lowbar;ITER end1,
    INPUT&lowbar;ITER start2,
    INPUT&lowbar;ITER end2);
----

[.small]#xref:BloombergLP/bslalg/RangeCompare/equal-0b.adoc[_» more&period;&period;&period;_]#

Same as the preceding `equal` overload, taking explicit range lengths&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
static
bool
xref:BloombergLP/bslalg/RangeCompare/equal-0c.adoc[equal](
    INPUT&lowbar;ITER start1,
    INPUT&lowbar;ITER end1,
    xref:BloombergLP/bslalg/RangeCompare/size_type.adoc[size&lowbar;type] length1,
    INPUT&lowbar;ITER start2,
    INPUT&lowbar;ITER end2,
    xref:BloombergLP/bslalg/RangeCompare/size_type.adoc[size&lowbar;type] length2);
----

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

== Return Value

* `true` if every corresponding pair of elements compares equal, and `false` otherwise
* `true` if the ranges have the same length and compare equal, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *start1*
| beginning of the first range
| *end1*
| end of the first range (one past the last element)
| *start2*
| beginning of the second range
| *end2*
| end of the second range (one past the last element)
| *length1*
| length of the first range
| *length2*
| length of the second range
|===


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