SpiecsEngine
 
Loading...
Searching...
No Matches

◆ end_k()

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

@breif Get the end key of this container.

Returns
Returns the end key found.

Definition at line 356 of file LinkedUnorderedMap.h.

357 {
358 std::shared_lock<std::shared_mutex> lock(m_Mutex);
359
360 if (size() == 0) return nullptr;
361
362 return &m_Keys.back();
363 }
std::shared_mutex m_Mutex
Mutex for this container.
size_t size()
The container's element size.
std::list< K > m_Keys
The container keeps iter in order.