title: Assign object into unordered_map array?
body: <pre><code>typedef tr1::unordered_map &lt;string, pin *&gt; pin_cmp;
  pin_cmp _pin_cmp;
  _Pins[_num_pins] = new pin (pin_id, _num_pins, s, n, d);
  _pin_cmp[_Pins[_num_pins]-&gt;get_name ()] = _Pins[_num_pins]; //performance profiling
  </code></pre>
  
  <p>Could you teach me what actually the code doing?</p>
  
  <pre><code>_pin_cmp[_Pins[_num_pins]-&gt;get_name ()] = _Pins[_num_pins]; //performance profiling
  </code></pre>
  
  <p>I am not familiar with unordered_map which still can use with array[].I am confuse unordered_map just need key and value why will have array[]?</p>