Lines Matching defs:value
80 * In the multithread scenario, the value returned by <b>Empty()</b> is a
96 * @param key Indicates the key of the key-value (KV) pair to insert.
97 * @param value Indicates the value of the KV pair to insert.
101 bool Insert(const K& key, const V& value)
104 auto ret = map_.insert(std::pair<K, V>(key, value));
112 * @param value Indicates the value of the KV pair to insert.
114 * the KV pair to ensure that the value is inserted.
116 void EnsureInsert(const K& key, const V& value)
119 auto ret = map_.insert(std::pair<K, V>(key, value));
123 map_.insert(std::pair<K, V>(key, value));
133 * @param value Indicates the value of the KV pair to search.
137 bool Find(const K& key, V& value)
144 value = iter->second;
152 * @brief Replaces the value of a KV pair.
155 * @param oldValue Indicates the value to be replaced.
156 * @param newValue Indicates the new value of the KV pair.