SpiecsEngine
 
Loading...
Searching...
No Matches

◆ clear()

template<typename K , typename V >
void scl::linked_unordered_map< K, V >::clear ( )
inline

Clear this container's data.

Definition at line 164 of file LinkedUnorderedMap.h.

165 {
166 std::unique_lock<std::shared_mutex> lock(m_Mutex);
167
168 m_Keys.clear();
169 m_Map.clear();
170 m_Size = 0;
171 }
std::shared_mutex m_Mutex
Mutex for this container.
std::unordered_map< K, V > m_Map
std::list< K > m_Keys
The container keeps iter in order.
std::atomic_int m_Size
This container size.