SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Insert() [2/2]

template<typename K , typename V >
void scl::thread_unordered_map< K, V >::Insert ( K && k,
V && v )
inline

Insert a element to this.

Parameters
[in]kKey.
[in]vValue.

Definition at line 104 of file ThreadUnorderedMap.h.

105 {
106 std::unique_lock<std::shared_mutex> lock(m_Mutex);
107
108 m_Map[k] = v;
109 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.