Could you explain why the _Hash class manages buckets using both lower and upper bounds?
Hello,
First of all, I’d like to kindly ask for your understanding as I’m using a translation tool to write this message.
While looking into the msvc C++ _Hash class, I came across something I didn’t fully understand, so I’m reaching out with a question. From what I can tell, the _Hash class seems to manage buckets in the form of [2n, 2n + 1] I’m curious about the reasoning behind this design. Is there a specific optimization technique involved in this approach?
In particular, when calling find(), it appears that it accesses 2n + 1 and then searches backwards through the list. I’d like to understand whether this behavior is part of some optimization strategy.
Thank you very much to anyone who takes the time to read my question.