value_compare#
concurrent_multimap::value_compare
is a function object that is used to compare
concurrent_multimap::value_type
objects by comparing their first components.
Class Synopsis#
namespace oneapi { namespace tbb { template <typename Key, typename T, typename Compare, typename Allocator> class concurrent_multimap<Key, T, Compare, Allocator>::value_compare { protected: key_compare comp; value_compare( key_compare c ); public: bool operator()( const value_type& lhs, const value_type& rhs ) const; }; // class value_compare } // namespace tbb } // namespace oneapi
Member objects#
key_compare comp;The key comparison function object.
Member functions#
value_compare( key_compare c );Constructs a
value_compare
with the stored key comparison function objectc
.
bool operator()( const value_type& lhs, const value_type& rhs ) const;Compares
lhs.first
andrhs.first
by calling the stored key comparison functioncomp
.Returns:
true
if first components oflhs
andrhs
are equal;false
, otherwise.