Lines Matching refs:V
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()
53 size_type eraseIfEqual(const K& k, const V& v) { in eraseIfEqual()
69 void setLocked(K&& k, V&& v) { mMap[std::forward<K>(k)] = std::forward<V>(v); } in setLocked()
70 void setLocked(K&& k, const V& v) { mMap[std::forward<K>(k)] = v; } in setLocked()
72 const V& getLocked(const K& k, const V& def) const { in getLocked()
90 std::map<K, V> mMap;