r/cpp • • Jun 23 '26

Two Indexed Hash Tables

https://vnmakarov.github.io/data%20structures/c/c++/open-source/2026/06/23/two-indexed-hash-tables.html
35 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/garnet420 Jun 23 '26

I think if you made your tag nonzero (it's simple to enforce that with a bitwise operation) you could get rid of the index sentinel and get better performance.