Skip to content

Commit 8a19b32

Browse files
committed
[libc++] Add a bit of documentation about our __hash_table implementation
1 parent 900d20d commit 8a19b32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__hash_table

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
_LIBCPP_PUSH_MACROS
5555
#include <__undef_macros>
5656

57+
// __hash_table implements a hash table that is built from a forward list. The __bucket_list_ points into that forward
58+
// list. Specifically, the pointers in the __bucket_list_ point to the element before the start of the bucket. This
59+
// makes it possible to insert elements into a bucket without having to iterate through the previous bucket.
60+
5761
_LIBCPP_BEGIN_NAMESPACE_STD
5862

5963
template <class _Key, class _Tp>

0 commit comments

Comments
 (0)