Updating std::map object data
<p>I have a std::map object as follows</p>

<pre><code>typedef std::map&lt;int,int&gt; RoutingTable;
RoutingTable rtable;
</code></pre>

<p>and then I've initialized it in a function</p>

<pre><code> for (int i=0; i&lt;getNumNodes(); i++)
 {
   int gateIndex = parentModuleGate-&gt;getIndex();
    int address = topo-&gt;getNode(i)-&gt;getModule()-&gt;par("address");
    rtable[address] = gateIndex; 
  }
</code></pre>

<p>Now I want to change the values in the rtable in another function. how can I achieve this?</p>
