0

Sandor Dargo's Blog · 2mo · discuss

In a recent article on std::inplace_vector, I mentioned that C++26 is generous with new containers. Here’s the other one: std::hive. Consider a game engine managing thousands of entities. Each entity is stored in a container, and other subsystems hold pointers to those entities. When an entity is destroyed, you erase it from the container. With std::vector, every element after the erased one s...