Lines Matching refs:K
25 template<typename K, typename V>
28 using size_type = typename std::map<K, V>::size_type;
29 using iterator = typename std::map<K, V>::iterator;
30 using const_iterator = typename std::map<K, V>::const_iterator;
33 void set(K &&k, V &&v) { in set()
35 mMap[std::forward<K>(k)] = std::forward<V>(v); in set()
39 const V &get(const K &k, const V &def) const { in get()
48 size_type erase(const K &k) { in erase()
53 size_type eraseIfEqual(const K& k, const V& v) { in eraseIfEqual()
69 void setLocked(const K& k, V&& v) { mMap[k] = std::forward<V>(v); } in setLocked()
70 void setLocked(const K& k, const V& v) { mMap[k] = v; } in setLocked()
72 const V& getLocked(const K& k, const V& def) const { in getLocked()
80 size_type eraseLocked(const K& k) { return mMap.erase(k); } in eraseLocked()
90 std::map<K, V> mMap;