Remove element from unordered_map without calling destructor on it
<p>I want to remove an element from an STDL unordered map without a destructor being called on that element. For example, say I have the following:</p>

<pre><code>std::unordered_map&lt;size_t, my_obj*&gt; map;

my_obj *ptr = new my_obj();
map[5] = ptr;

map.erase(5); // This calls a destructor on ptr.
</code></pre>

<p>Is there a way for me to remove the entry <code>5 -&gt; ptr</code> from the map, without calling the destructor of the element I'm removing?</p>