[#BloombergLP-bdlc-operator_eq-043] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator== :relfileprefix: ../../ :mrdocs: Equality operators == Synopses Declared in `<bdlc_bitarray.h>` Return true if the specified `a` and `b` are equal. Two `FlatHashTable_IteratorImp` objects are equal if they both refer to the same element of the underlying flat hash table, or are both not dereferenceable. The behavior is undefined unless `a` and `b` refer to the same `FlatHashTable`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ENTRY> bool xref:BloombergLP/bdlc/operator_eq-098.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable_IteratorImp<ENTRY>] const& a, xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable_IteratorImp<ENTRY>] const& b); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-098.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. 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. The hash and equality functors are not involved in the comparison. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class HASH, class EQUAL> bool xref:BloombergLP/bdlc/operator_eq-042.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>] const& a, xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>] const& b); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-042.adoc[_» more..._]# Return whether the sets have the same contents. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> bool xref:BloombergLP/bdlc/operator_eq-096.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet] const&, xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet] const&); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-096.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` index clerks have the same value, and `false` otherwise. Two `IndexClerk` objects have the same value if they have the same `nextNewIndex()` and would always generate the same sequence of integer indices. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlc/operator_eq-0e2.adoc[operator==]( 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..._]# Return `true` if `lhs` and `rhs` have the same value and `false` otherwise. 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. The behavior is undefined unless `lhs` and `rhs` refer to the same container and are non‐singular (i.e., are not default‐constructed or copies of singular iterators). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlc/operator_eq-05.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` queues have the same value, and `false` otherwise. Two queues have the same value if they have the same length and the same element value at each respective index position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> bool xref:BloombergLP/bdlc/operator_eq-0b.adoc[operator==]( xref:BloombergLP/bdlc/Queue.adoc[Queue<T>] const& lhs, xref:BloombergLP/bdlc/Queue.adoc[Queue<T>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-0b.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. 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. The hash and equality functors are not involved in the comparison. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class VALUE, class HASH, class EQUAL> bool xref:BloombergLP/bdlc/operator_eq-0d9.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>] const& lhs, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-0d9.adoc[_» more..._]# Return whether the maps have the same key/value contents. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> bool xref:BloombergLP/bdlc/operator_eq-04c.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap] const&, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap] const&); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-04c.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. 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. Note that this method requires the (template parameter) type `ENTRY` to be equality‐comparable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class ENTRY, class ENTRY_UTIL, class HASH, class EQUAL> bool xref:BloombergLP/bdlc/operator_eq-0d5.adoc[operator==]( xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>] const& lhs, xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-0d5.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> bool xref:BloombergLP/bdlc/operator_eq-06.adoc[operator==<>]( xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator] const&, xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator] const&); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-06.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> bool xref:BloombergLP/bdlc/operator_eq-07.adoc[operator==<>]( xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable_IteratorImp] const&, xref:BloombergLP/bdlc/FlatHashTable_IteratorImp.adoc[FlatHashTable_IteratorImp] const&); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-07.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlc/operator_eq-085.adoc[operator==]( xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray<TYPE>] const& lhs, xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-085.adoc[_» more..._]# 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. Note that the reference counts are intentionally ignored. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlc/operator_eq-02.adoc[operator==]( xref:BloombergLP/bdlc/CompactedArray_CountedValue.adoc[CompactedArray_CountedValue<TYPE>] const& lhs, xref:BloombergLP/bdlc/CompactedArray_CountedValue.adoc[CompactedArray_CountedValue<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-02.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` iterators have the same value, and `false` otherwise. Two `CompactedArray_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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlc/operator_eq-0e8.adoc[operator==]( xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray_ConstIterator<TYPE>] const& lhs, xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray_ConstIterator<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-0e8.adoc[_» more..._]# Return whether the iterators refer to the same position (see free `operator==`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> bool xref:BloombergLP/bdlc/operator_eq-091.adoc[operator==]( xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray_ConstIterator] const&, xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray_ConstIterator] const&); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-091.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise. Two arrays have the same value if they have the same length, and corresponding bits at each bit position have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlc/operator_eq-04d.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` arrays have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlc/operator_eq-080.adoc[operator==]( xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray<TYPE>] const& lhs, xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-080.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` iterators have the same value, and `false` otherwise. Two `PackedIntArrayConstIterator` iterators have the same value if they refer to the same array, and have the same index. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlc/operator_eq-0a.adoc[operator==]( xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator<TYPE>] const& lhs, xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlc/operator_eq-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#