[ox/std] Remove unnecessary copying from HashMap::expand

(synced from 6bfe184261)
This commit is contained in:
2024-04-18 23:39:33 -05:00
parent 396e61ed99
commit f95f907a03
+1 -1
View File
@@ -212,7 +212,7 @@ template<typename K, typename T>
constexpr void HashMap<K, T>::expand() {
Vector<Pair*> r;
for (std::size_t i = 0; i < m_keys.size(); ++i) {
K k{m_keys[i]};
auto const&k = m_keys[i];
access(r, k) = std::move(access(m_pairs, k));
}
m_pairs = std::move(r);