We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf418c commit b713ccfCopy full SHA for b713ccf
1 file changed
interface/core/containers/hashset.h
@@ -1596,14 +1596,7 @@ namespace hud
1596
[[nodiscard]]
1597
constexpr hud::pair<iterator, bool> find_or_insert_no_construct(K &&key) noexcept
1598
{
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
+ return find_or_insert_no_construct_impl(forward_key(hud::forward<K>(key)));
1607
}
1608
1609
/**
0 commit comments