r/cpp • • Aug 02 '26

How fast is C++26's std::hive?

https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
256 Upvotes

74 comments sorted by

View all comments

Show parent comment

24

u/KingAggressive1498 Aug 02 '26 edited Aug 02 '26

When you want O(1) removal from any position, order doesn't matter, fast cache-friendly iteration is critical, and need iterator stability. So for large unordered collections of objects that are frequently iterated over and inserted to/removed from and referenced.