SpiecsEngine
 
Loading...
Searching...
No Matches

◆ HasKey() [2/2]

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

Is element in this unordered_map.

Parameters
[in]kKey.
Returns
Returns true if found..

Definition at line 136 of file ThreadUnorderedMap.h.

137 {
138 std::shared_lock<std::shared_mutex> lock(m_Mutex);
139
140 return m_Map.find(k) != m_Map.end();
141 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.