Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 4 of 4) sorted by relevance

/oneTBB/include/oneapi/tbb/detail/
H A D_hash_compare.h42 bool operator()( const Key& key1, const Key& key2 ) const { in operator()
43 return my_equal(key1, key2); in operator()
52 bool operator()( const K1& key1, const K2& key2 ) const { in operator()
53 return my_equal(key1, key2); in operator()
95 … requires( const std::remove_reference_t<HashCompare>& hc, const Key& key1, const Key& key2 ) { in requires() argument
96 { hc.hash(key1) } -> std::same_as<std::size_t>; in requires()
97 { hc.equal(key1, key2) } -> std::convertible_to<bool>; in requires()
/oneTBB/test/tbb/
H A Dtest_concurrent_hash_map.cpp384 …bool equal(const AllocatorAwareData<Allocator>& key1, const AllocatorAwareData<Allocator>& key2) c… in equal()
385 return my_hash_compare.equal(key1.value(), key2.value()); in equal()
399 allocator_data_type key1(1, allocator), key2(2, allocator); in TestScopedAllocator() local
403 hash_map_type::value_type v1(key1, data1), v2(key2, data2); in TestScopedAllocator()
408 map1.emplace(key1, data1); in TestScopedAllocator()
691 bool equal(const T& key1, const U& key2) const { return key1 == key2; } in equal()
/oneTBB/test/conformance/
H A Dconformance_concurrent_hash_map.cpp1247 bool equal( const int& key1, const int& key2 ) const { in equal()
1248 return key1 == key2; in equal()
1252 bool equal( const int& key1, const HeterogeneousKey<IsConstructible>& key2 ) const { in equal()
1253 return key1 == key2.integer_key(); in equal()
1257 bool equal( const HeterogeneousKey<IsConstructible>& key1, const int& key2 ) const { in equal()
1258 return key1.integer_key() == key2; in equal()
1262 …bool equal( const HeterogeneousKey<IsConstructible>& key1, const HeterogeneousKey<IsConstructible>… in equal()
1263 return key1.integer_key() == key2.integer_key(); in equal()
/oneTBB/test/common/
H A Dconcurrent_associative_common.h302 void test_emplace_insert( Key key1, Key key2 ) {
305 std::pair<typename Container::iterator, bool> ins = emplace_helpers::call_emplace(cont, key1);
307 REQUIRE_MESSAGE(Value<Container>::compare(ins.first, key1), "Element 1 has not been inserted");
1196 allocator_data_type key1(1, allocator);
1199 container_value_type value1 = Value<container_type>::make(key1);
1209 emplace_helpers::call_emplace(c1, key1);