Criteria; No need to create copies of objects everywhere. It should be fast, efficient memory and should not create leaks. Must be thread safe.
Ideally, I would like to store pointers to vectors in a HashMap, but I'm worried about memory leaks this way.
Is this the best way?
std::map<std::string, std::auto_ptr<std::vector<std::string> > > adjacencyMap;
source
share