dynamic int * arrays as key for C++ map
<p>I have some dynamic int * arrays that I would like to use as keys for an unordered_map.  I'm a bit unclear on how I should declare the key type so it would actually be the value of the entire array. </p>

<p>Also, to deallocate the memory for the arrays, do I use <code>map.clear()</code>?</p>

<p>Example:</p>

<pre><code>unordered_map&lt;??, int&gt; frequency;

while (some_condition) {

  int *my_array = new int[size];
  putSomeValuesToArray(my_array);
  frequency[my_array]++;
}

// to deallocate memory for the arrays in frequency?
</code></pre>
