[#bsl-operator_eq-0b6]
= xref:bsl.adoc[bsl]::operator&equals;&equals;
:relfileprefix: ../
:mrdocs:

Return `true` if `lhs` and `rhs` have the same value, and `false` otherwise&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE,
    class ALLOCATOR&gt;
bool
operator&equals;&equals;(
    xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;] const& lhs,
    xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;] const& rhs);
----

== Description

Two `list` objects `lhs` and `rhs` have the same value if they have the same number of elements, and each element in the ordered sequence of elements of `lhs` has the same value as the corresponding element in the ordered sequence of elements of `rhs`&period; This method requires that the (template parameter) type `VALUE` be `equality&hyphen;comparable` (see &lcub;Requirements on `VALUE`&rcub;)&period;

== Return Value

`true` if the lists compare equal

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| first list to compare
| *rhs*
| second list to compare
|===


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