[#BloombergLP-bslstl-HashTable-09-hasSameValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable&lt;UnorderedMapKeyConfiguration&lt;basic&lowbar;string&lt;char&gt; const, pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;, TransparentHash, TransparentEqualTo, allocator&lt;pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;&gt;]::hasSameValue
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `other` has the same value as this object, and `false` otherwise&period; Two `HashTable` objects have the same value if they have the same number of elements, and for every subset of elements in this object having keys that compare equal (according to that hash table&apos;s `comparator`), a corresponding subset of elements exists in the `other` object, having the same number of elements, where, for some permutation of the subset in this object, every element in that subset compares equal (using `operator&equals;&equals;`) to the corresponding element in the `other` subset&period; The behavior is undefined unless both the `hasher` and `comparator` of this object and the `other` return the same value for every valid input&period; Note that this method requires that the `ValueType` of the parameterized `KEY&lowbar;CONFIG` be &quot;equality&hyphen;comparable&quot; (see &lcub;Requirements on `KEY&lowbar;CONFIG`&rcub;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
hasSameValue(xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable&lt;UnorderedMapKeyConfiguration&lt;basic&lowbar;string&lt;char&gt; const, pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;, TransparentHash, TransparentEqualTo, allocator&lt;pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;&gt;] const& other) const;
----


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