Lines Matching refs:key

46     int key;  member in MyKey
55 result.key = i; in make()
59 int value_of() const { return key; } in value_of()
160 return j.key==k.key; in equal()
164 return k.key; in hash()
171 return j.key==k.key; in equal()
223 MyKey key( MyKey::make(-i) ); // hash values must not be specified in direct order in FillTable() local
225 bool b = x.insert(a,key); in FillTable()
237 MyKey key( MyKey::make(-i) ); in CheckTable() local
239 bool b = x.find(a,key); in CheckTable()
406 MyKey key( MyKey::make(-5) ); MyData2 data; in TestIteratorsAndRanges() local
407 CHECK(t2.erase(key)); in TestIteratorsAndRanges()
409 CHECK(t2.insert(a, key)); in TestIteratorsAndRanges()
802 int key = i%IE_SIZE; in apply() local
803 if ( table.insert( std::make_pair(MyKey::make(key), MyData2()) ) ) in apply()
804 ++InsertEraseCount[key]; in apply()
806 int key = i%IE_SIZE; in apply() local
809 if(table.find( res, MyKey::make(key) ) && table.erase( res ) ) in apply()
810 --InsertEraseCount[key]; in apply()
813 if(table.find( res, MyKey::make(key) ) && table.erase( res ) ) in apply()
814 --InsertEraseCount[key]; in apply()
988 MyKey key = MyKey::make(i); in operator ()() local
989 if( my_table.insert( a, key ) ) in operator ()()
1217 HeterogeneousKey(int key) : my_key(key) { ++heterogeneous_keys_count; } in HeterogeneousKey() argument
1226 HeterogeneousKey( construct_flag, int key ) : my_key(key) {} in HeterogeneousKey() argument
1239 std::size_t hash( const HeterogeneousKey<IsConstructible>& key ) const { in hash()
1240 return my_hash_object(key.integer_key()); in hash()
1243 std::size_t hash( const int& key ) const { in hash()
1244 return my_hash_object(key); in hash()
1293 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_find() local
1294 bool regular_result = chmap.find(cacc, key); in test_heterogeneous_find()
1302 regular_result = chmap.find(acc, key); in test_heterogeneous_find()
1314 regular_result = chmap.find(cacc, key); in test_heterogeneous_find()
1323 regular_result = chmap.find(acc, key); in test_heterogeneous_find()
1340 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_count() local
1342 typename chmap_type::size_type regular_count = chmap.count(key); in test_heterogeneous_count()
1351 regular_count = chmap.count(key); in test_heterogeneous_count()
1371 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_equal_range() local
1373 result regular_result = chmap.equal_range(key); in test_heterogeneous_equal_range()
1383 const_result regular_const_result = cchmap.equal_range(key); in test_heterogeneous_equal_range()
1394 regular_result = chmap.equal_range(key); in test_heterogeneous_equal_range()
1403 regular_const_result = cchmap.equal_range(key); in test_heterogeneous_equal_range()