Skip to content

Commit 430bf27

Browse files
author
Julian LALU
committed
Update hashmap
1 parent d3915b7 commit 430bf27

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

interface/core/containers/hashset.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,11 @@ namespace hud
10331033
return const_cast<hashset_impl *>(this)->contains(hud::forward<K>(key));
10341034
}
10351035

1036+
// template<typename K, typename... Args>
1037+
// iterator try_emplace(K &&key, Args) noexcept
1038+
// {
1039+
// }
1040+
10361041
constexpr void swap(hashset_impl &other) noexcept
10371042
requires(hud::is_swappable_v<slot_type>)
10381043
{

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ set( src
8484
hashmap/hashmap_rehash.cpp
8585
hashmap/hashmap_remove.cpp
8686
hashmap/hashmap_shrink_to_fit.cpp
87+
hashmap/hashmap_try_emplace.cpp
8788
hashset/hashset_add.cpp
8889
hashset/hashset_constructors.cpp
8990
hashset/hashset_iterator.cpp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#include <core/containers/hashmap.h>
1+
#include <core/containers/hashmap.h>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <core/containers/hashmap.h>

0 commit comments

Comments
 (0)