SpiecsEngine
 
Loading...
Searching...
No Matches

◆ has_equal_size()

template<typename K , typename V >
bool scl::linked_unordered_map< K, V >::has_equal_size ( )
inline

Determine whether the container's element size is same.

Returns
Returns true if the size of the keys_ and map_.
Note
Used for unit test, shou not be called during game.

Definition at line 156 of file LinkedUnorderedMap.h.

157 {
158 std::shared_lock<std::shared_mutex> lock(m_Mutex);
159
160 return m_Keys.size() == m_Map.size();
161 }
std::shared_mutex m_Mutex
Mutex for this container.
std::unordered_map< K, V > m_Map
std::list< K > m_Keys
The container keeps iter in order.