title: C++: Is it possible to use a reference as the value in a map?
body: <p>Is it possible to use a reference as the value in a standard map container in C++?<br>
  If not - why not?</p>
  
  <p>Example declaration:</p>
  
  <pre><code>map&lt;int, SomeStruct&amp;&gt; map_num_to_struct;
  </code></pre>
  
  <p>Example usage:</p>
  
  <pre><code>...
  SomeStruct* some_struct = new SomeStruct();
  map_num_to_struct[3] = *some_struct;
  map_num_to_struct[3].some_field = 14.3;
  cout&lt;&lt;some_struct.some_field;
  ...
  </code></pre>
  
  <p>I would expect to see 14.3 printed...</p>