Lines Matching refs:V
27 template <typename K, typename V>
51 V ReadVal(const K& key) in ReadVal()
101 bool Insert(const K& key, const V& value) in Insert()
104 auto ret = map_.insert(std::pair<K, V>(key, value)); in Insert()
116 void EnsureInsert(const K& key, const V& value) in EnsureInsert()
119 auto ret = map_.insert(std::pair<K, V>(key, value)); in EnsureInsert()
123 map_.insert(std::pair<K, V>(key, value)); in EnsureInsert()
137 bool Find(const K& key, V& value) in Find()
160 bool FindOldAndSetNew(const K& key, V& oldValue, const V& newValue) in FindOldAndSetNew()
169 map_.insert(std::pair<K, V>(key, newValue)); in FindOldAndSetNew()
198 using SafeMapCallBack = std::function<void(const K, V&)>;
218 std::map<K, V> map_;
220 std::map<K, V> Clone() const noexcept in Clone()