Skip to content

[libc++] Add a bit of documentation about our __hash_table implementation #152656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libcxx/include/__hash_table
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
_LIBCPP_PUSH_MACROS
#include <__undef_macros>

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

_LIBCPP_BEGIN_NAMESPACE_STD

template <class _Key, class _Tp>
Expand Down
Loading