What is the best way to create a HashMap of String to Vector of Strings in C++?
<p>Criteria, don't want creating copies of objects all over the place.
Should be fast, memory efficient and should not create leaks.
Should be threadsafe.</p>

<p>Ideally I would want to store pointers to vectors in the HashMap, but I am worried about memory leaks that way.</p>

<p>Is this the best way?</p>

<pre><code>std::map&lt;std::string, std::auto_ptr&lt;std::vector&lt;std::string&gt; &gt; &gt; adjacencyMap;
</code></pre>
