SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Find() [1/2]

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

Find element in this unordered_map.

Parameters
[in]kKey.
Returns
Returns value.

Definition at line 128 of file ThreadUnorderedMap.h.

129 {
130 std::shared_lock<std::shared_mutex> lock(m_Mutex);
131
132 return m_Map[k];
133 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.