   Quick and Efficient Storage of pointers to objects
  I'm wondering what is the best way of storing a long list of pointers to objects where they the items will constantly be removed from random places. An example would be game objects. I was thinking a hash table using the object's pointer as the key and a custom memory allocator to keep the data on the same page would work well, but I don't think there's a hash table container in the STL. The other option I can think of would be a standard map.Any ideas?Thanks   
  std::list<boost::shared_ptr<GameObject>>?   ;  what about creating a std::pair<pointer,aloc> ?then you can choose where to put it in :) vector, list, set,... depends on what you need (easy adding elements? fast searching ? ... )you could also use the boost::hash ;)   ;  It sounds like you'd want a set instead of a map. I'd give boost::unordered_set a try, possibly with one of the boost pooled allocators before you try making your own.   ;  I've never used boost before. I need fast deletion, addition, and iterating. So I guess that's about everything. I'll try the unordered set first. Object allocation can come later, but I didn't know boost had one. :)Thanks   