Skip to content

Commit 583cbf8

Browse files
author
Julian LALU
committed
Improve hashset comments
1 parent e48e5f3 commit 583cbf8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

interface/core/containers/hashset.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
#include <tmmintrin.h>
2222
#endif
2323

24-
// Difference with STL:
25-
// - Don't use is_transparent because we don't have the nessecity to keep compatibility with existing code.
26-
// Comparaison and hasher is always transparent if the user provide a custom equal or hasher type.
27-
2824
namespace hud
2925
{
3026
namespace details::hashset
@@ -1299,6 +1295,12 @@ namespace hud
12991295
*
13001296
* Uses open addressing with H1/H2 hash scheme and groups for SIMD-friendly probing.
13011297
*
1298+
* Difference with STL:
1299+
* --------------------
1300+
* - Does not use `is_transparent` because we don’t need to maintain compatibility
1301+
* with existing code. Comparison and hasher are always treated as transparent
1302+
* if the user provides a custom equality or hash type.
1303+
*
13021304
* @tparam storage_t Type of storage used for the elements.
13031305
* @tparam hasher_t Type of the hash function.
13041306
* @tparam key_equal_t Type of the equality comparator.

0 commit comments

Comments
 (0)