SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Insert() [1/2]

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

Insert a element to this.

Parameters
[in]kKey.
[in]vValue.

Definition at line 112 of file ThreadUnorderedMap.h.

113 {
114 std::unique_lock<std::shared_mutex> lock(m_Mutex);
115
116 m_Map[k] = v;
117 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.