SpiecsEngine
 
Loading...
Searching...
No Matches

◆ HasKey() [1/2]

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

Is element in this unordered_map.

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

Definition at line 144 of file ThreadUnorderedMap.h.

145 {
146 std::shared_lock<std::shared_mutex> lock(m_Mutex);
147
148 return m_Map.find(k) != m_Map.end();
149 }
std::shared_mutex m_Mutex
Mutex of this queue.
std::unordered_map< K, V > m_Map
This wrapped unordered_map.