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

Compare each element in the range beginning at the specified `start1` position and ending immediately before the specified `end1` position to the corresponding element in the range of the same length beginning at the specified `start2` position, as if using `operator&equals;&equals;` element&hyphen;by&hyphen;element&period; Return `true` if every pair of corresponding elements compares equal, and `false` otherwise&period; Note that this implementation uses `operator&equals;&equals;` to perform the comparisons, or bit&hyphen;wise comparison if the value type has the bit&hyphen;wise equality&hyphen;comparable trait&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
static
bool
equal(
    INPUT&lowbar;ITER start1,
    INPUT&lowbar;ITER end1,
    INPUT&lowbar;ITER start2);
----


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