Add a element to this container.
181 {
183
184 std::unique_lock<std::shared_mutex> lock(
m_Mutex);
185
186 if (!hasKey)
187 {
189
191 }
192
194 }
std::shared_mutex m_Mutex
Mutex for this container.
std::unordered_map< K, V > m_Map
bool has_key(const K &key)
Determine whether the key is in the container.
std::list< K > m_Keys
The container keeps iter in order.
std::atomic_int m_Size
This container size.