title: C++: Best Way To Hold Entity List vector vs set
body: <p>I have implemented an entity-component system to manage my entities in a game engine, managing components using std::map. Now the main part is to hold all entities in the CWorld class. Those entities can be directly accessed with index by CWorld, to add component etc. And also, all entities will be iterated each tick for update and render operations. And the list will not be static as you can guess, I mean entities can die, so need to be removed from list at some point. At this point, I need to ask the differences between std::vector and set, or any suggestion to hold entities. </p>