Skip to content

Commit b713ccf

Browse files
author
Julian LALU
committed
Improve Hashset
1 parent edf418c commit b713ccf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

interface/core/containers/hashset.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,14 +1596,7 @@ namespace hud
15961596
[[nodiscard]]
15971597
constexpr hud::pair<iterator, bool> find_or_insert_no_construct(K &&key) noexcept
15981598
{
1599-
if constexpr (is_hashable_and_comparable_v<K>)
1600-
{
1601-
return find_or_insert_no_construct_impl(hud::forward<K>(key));
1602-
}
1603-
else
1604-
{
1605-
return find_or_insert_no_construct_impl(key_type(hud::forward<K>(key)));
1606-
}
1599+
return find_or_insert_no_construct_impl(forward_key(hud::forward<K>(key)));
16071600
}
16081601

16091602
/**

0 commit comments

Comments
 (0)