[#BloombergLP-bdlc-operator_eq-043]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;bdlc&lowbar;bitarray&period;h&gt;`

Return true if the specified `a` and `b` are equal&period; Two `FlatHashTable&lowbar;IteratorImp` objects are equal if they both refer to the same element of the underlying flat hash table, or are both not dereferenceable&period; The behavior is undefined unless `a` and `b` refer to the same `FlatHashTable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ENTRY&gt;
bool
xref:BloombergLP/bdlc/operator_eq-098.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable&lowbar;IteratorImp&lt;ENTRY&gt;] const& a,
    xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable&lowbar;IteratorImp&lt;ENTRY&gt;] const& b);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-098.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period; Two `FlatHashSet` objects have the same value if their sizes are the same and each element contained in one is equal to an element of the other&period; The hash and equality functors are not involved in the comparison&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class HASH,
    class EQUAL&gt;
bool
xref:BloombergLP/bdlc/operator_eq-042.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet&lt;KEY, HASH, EQUAL&gt;] const& a,
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet&lt;KEY, HASH, EQUAL&gt;] const& b);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-042.adoc[_» more&period;&period;&period;_]#

Return whether the sets have the same contents&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
bool
xref:BloombergLP/bdlc/operator_eq-096.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet] const&,
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet] const&);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-096.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` index clerks have the same value, and `false` otherwise&period; Two `IndexClerk` objects have the same value if they have the same `nextNewIndex()` and would always generate the same sequence of integer indices&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlc/operator_eq-0e2.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/IndexClerk.adoc[IndexClerk] const& lhs,
    xref:BloombergLP/bdlc/IndexClerk.adoc[IndexClerk] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0e2.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` and `rhs` have the same value and `false` otherwise&period; Two iterators have the same value if they refer to the same element of the same container or if they both have the end iterator value for the same container&period; The behavior is undefined unless `lhs` and `rhs` refer to the same container and are non&hyphen;singular (i&period;e&period;, are not default&hyphen;constructed or copies of singular iterators)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlc/operator_eq-05.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/IndexClerkIter.adoc[IndexClerkIter] const& lhs,
    xref:BloombergLP/bdlc/IndexClerkIter.adoc[IndexClerkIter] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-05.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` queues have the same value, and `false` otherwise&period; Two queues have the same value if they have the same length and the same element value at each respective index position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
bool
xref:BloombergLP/bdlc/operator_eq-0b.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/Queue.adoc[Queue&lt;T&gt;] const& lhs,
    xref:BloombergLP/bdlc/Queue.adoc[Queue&lt;T&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0b.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period; Two `FlatHashMap` objects have the same value if their sizes are the same and each element contained in one is equal to an element of the other&period; The hash and equality functors are not involved in the comparison&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL&gt;
bool
xref:BloombergLP/bdlc/operator_eq-0d9.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap&lt;KEY, VALUE, HASH, EQUAL&gt;] const& lhs,
    xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap&lt;KEY, VALUE, HASH, EQUAL&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0d9.adoc[_» more&period;&period;&period;_]#

Return whether the maps have the same key&sol;value contents&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
bool
xref:BloombergLP/bdlc/operator_eq-04c.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap] const&,
    xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap] const&);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-04c.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period; Two `FlatHashTable` objects have the same value if they have the same number of entries, and for each entry that is contained in `lhs` there is a entry contained in `rhs` having the same value&period; Note that this method requires the (template parameter) type `ENTRY` to be equality&hyphen;comparable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class ENTRY,
    class ENTRY&lowbar;UTIL,
    class HASH,
    class EQUAL&gt;
bool
xref:BloombergLP/bdlc/operator_eq-0d5.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;] const& lhs,
    xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0d5.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
bool
xref:BloombergLP/bdlc/operator_eq-06.adoc[operator&equals;&equals;&lt;&gt;](
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator] const&,
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator] const&);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-06.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
bool
xref:BloombergLP/bdlc/operator_eq-07.adoc[operator&equals;&equals;&lt;&gt;](
    xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable&lowbar;IteratorImp] const&,
    xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable&lowbar;IteratorImp] const&);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-07.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise&period; Two `CompactedArray` arrays have the same value if they have the same length, and all corresponding elements (those at the same indices) have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
xref:BloombergLP/bdlc/operator_eq-085.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray&lt;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-085.adoc[_» more&period;&period;&period;_]#

Return `true` if the underlying object value of the specified `lhs` is the same as the underlying object value of the specified `rhs`, and `false` otherwise&period; Note that the reference counts are intentionally ignored&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
xref:BloombergLP/bdlc/operator_eq-02.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/CompactedArray_CountedValue.adoc[CompactedArray&lowbar;CountedValue&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/CompactedArray_CountedValue.adoc[CompactedArray&lowbar;CountedValue&lt;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-02.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` iterators have the same value, and `false` otherwise&period; Two `CompactedArray&lowbar;ConstIterator` iterators have the same value if they both have the default value, or neither has the default value and they reference the same location in the same array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
xref:BloombergLP/bdlc/operator_eq-0e8.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0e8.adoc[_» more&period;&period;&period;_]#

Return whether the iterators refer to the same position (see free `operator&equals;&equals;`)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
bool
xref:BloombergLP/bdlc/operator_eq-091.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator] const&,
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator] const&);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-091.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise&period; Two arrays have the same value if they have the same length, and corresponding bits at each bit position have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlc/operator_eq-04d.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& lhs,
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-04d.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise&period; Two `PackedIntArray` arrays have the same value if they have the same length, and all corresponding elements (those at the same indices) have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
xref:BloombergLP/bdlc/operator_eq-080.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray&lt;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-080.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` iterators have the same value, and `false` otherwise&period; Two `PackedIntArrayConstIterator` iterators have the same value if they refer to the same array, and have the same index&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
xref:BloombergLP/bdlc/operator_eq-0a.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/operator_eq-0a.adoc[_» more&period;&period;&period;_]#


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