SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Find() [2/2]

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

Find element in this unordered_map.

Parameters
[in]kKey.
Returns
Returns value.

Definition at line 120 of file ThreadUnorderedMap.h.

121 {
122 std::shared_lock<std::shared_mutex> lock(m_Mutex);
123
124 return m_Map[k];
125 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.