Pointers in stl::map
<p>I have query regarding std::map.</p>

<p>if I have a std::map like:</p>

<pre><code>std::map &lt;T1, T2*&gt; my_map;
T1 t;
T2* tt = new T2;
my_map[t]=tt;
</code></pre>

<p>who is responsible to clean this container,  Will destructor of T2 will take care of it (T2* tt). Also if I want to retain this container throughout the program, where should I clean it.</p>

<p>Thanks</p>
