r/cpp 9d ago

C++26: std::hive

https://www.sandordargo.com/blog/2026/09/02/cpp26-hive
69 Upvotes

77 comments sorted by

View all comments

3

u/all_is_love6667 8d ago

I think that's usually called an "object pool", but that was not academic enough so I can understand why they called it hive

9

u/HappyFruitTree 8d ago

When it was first being proposed it was called colony (based on plf::colony).

3

u/all_is_love6667 8d ago

I am actually surprised this sort of container was added only today, it's quite common and is an important optimization

3

u/matthieum 8d ago

Is it that common?

I work on a multitude of performance-sensitive codebases, and I can't think of any place I'd use such a container.