SpiecsEngine
 
Loading...
Searching...
No Matches

◆ end()

template<typename K , typename V >
V * scl::linked_unordered_map< K, V >::end ( )

Get the end element of this container.

Returns
Returns the end element found.

Definition at line 346 of file LinkedUnorderedMap.h.

347 {
348 std::shared_lock<std::shared_mutex> lock(m_Mutex);
349
350 if (size() == 0) return nullptr;
351
352 return &m_Map[m_Keys.back()];
353 }
std::shared_mutex m_Mutex
Mutex for this container.
std::unordered_map< K, V > m_Map
size_t size()
The container's element size.
std::list< K > m_Keys
The container keeps iter in order.