title: Vector, iterators and const_iterator
body: <p>I have just started learning vectors and iterators. I can't understand 2 things. Why can I change the constant iterator and what is the role of the "*"?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  using namespace std;
  int main()
  {
      vector&lt;string&gt; inventory;
      inventory.push_back("inventory1");
      inventory.push_back("inventory2");
      inventory.push_back("inventory3");
      vector&lt;string&gt;::iterator myIterator;
      vector&lt;string&gt;::const_iterator iter;
      cout &lt;&lt; "Your items:\n";
      for (iter = inventory.begin(); iter != inventory.end(); iter++)
      {
          cout &lt;&lt; *iter &lt;&lt; endl;
      }
  </code></pre>