Home | History | Annotate | Download | only in base

Lines Matching defs:key

13 // HashMap entries are (key, value, hash) triplets, with a boolean indicating if
15 // (e.g. implementers of sets, where the key is the value).
16 template <typename Key, typename Value>
18 Key key;
20 uint32_t hash; // The full hash value for key
22 TemplateHashMapEntry(Key key, Value value, uint32_t hash)
23 : key(key), value(value), hash(hash), exists_(true) {}
34 template <typename Key, typename Value>
35 struct TemplateHashMapEntry<Key*, Value> {
36 Key* key;
38 uint32_t hash; // The full hash value for key
40 TemplateHashMapEntry(Key* key, Value value, uint32_t hash)
41 : key(key), value(value), hash(hash) {}
43 bool exists() const { return key != nullptr; }
45 void clear() { key = nullptr; }