title: Change/update value using std::map const_iterator
body: <p>I am just curious to know if I can change/update the map's value using <strong>const_iterator</strong>.</p>
  
  <p>Below is the code snippet:</p>
  
  <pre><code>int main()
  {
      map &lt;int, int&gt; m;
      m.insert(make_pair(1, 10));
  
      map &lt;int, int&gt;::const_iterator itr = m.begin(); //The iterator is const_iterator
      itr-&gt;second = 30;
  
      cout &lt;&lt; itr-&gt;second; //The value to be printed is 30, and not 10.
      return 0;
  }
  </code></pre>
  
  <p>Thank you in advance for sharing your ideas.</p>