Return true if lhs and rhs have the same value.
Synopsis
Declared in <bslstl_unorderedmultiset.h>
template<
class KEY,
class HASH,
class EQUAL,
class ALLOCATOR>
bool
operator==(
unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR> const& lhs,
unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR> const& rhs);
Description
Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two unordered_multiset objects have the same value if they have the same number of value elements, and for each value‐element that is contained in lhs there is a value‐element contained in rhs having the same value, and vice‐versa. Note that this method requires that the (template parameter) type KEY be equality‐comparable (see {Requirements on KEY}).
Return Value
true if equal, otherwise false
Parameters
Name |
Description |
lhs |
left‐hand‐side unordered multiset to compare |
rhs |
right‐hand‐side unordered multiset to compare |
Created with MrDocs