[ox/std] Make Vector::erase return iterator item after removed item

This commit is contained in:
2021-11-29 03:33:13 -06:00
parent 1f24912ddd
commit a94051644b
3 changed files with 22 additions and 14 deletions

View File

@@ -182,7 +182,7 @@ void HashMap<K, T>::erase(const K &k) {
h = hash(hashStr, 8) % m_pairs.size();
}
}
m_keys.erase(ox::find(m_keys.cbegin(), m_keys.cend(), k));
m_keys.erase(ox::find(m_keys.begin(), m_keys.end(), k));
}
template<typename K, typename T>