Lines Matching defs:key
22 Entry(const K& key, V&& value)
23 : fKey(key)
45 V* find(const K& key) {
46 Entry** value = fMap.find(key);
58 V* insert(const K& key, V value) {
59 SkASSERT(!this->find(key));
61 Entry* entry = new Entry(key, std::move(value));
70 V* insert_or_update(const K& key, V value) {
71 if (V* found = this->find(key)) {
75 return this->insert(key, std::move(value));
111 void remove(const K& key) {
112 Entry** value = fMap.find(key);
115 SkASSERT(key == entry->fKey);
116 fMap.remove(key);