|
|
@@ -8,7 +8,6 @@
|
|
|
#pragma once
|
|
|
|
|
|
#include "core/containers/types.h"
|
|
|
-#include <algorithm> // std::swap
|
|
|
#include <string.h> // memcpy
|
|
|
|
|
|
namespace crown
|
|
|
@@ -123,7 +122,7 @@ namespace hash_map_internal
|
|
|
if (is_deleted(m._index[hash_i].index))
|
|
|
goto INSERT_AND_RETURN;
|
|
|
|
|
|
- std::swap(hash, m._index[hash_i].hash);
|
|
|
+ exchange(hash, m._index[hash_i].hash);
|
|
|
m._index[hash_i].index = 0x0123abcd;
|
|
|
swap(new_item, m._data[hash_i]);
|
|
|
|