Can I iterate a map from a desired key?
<p>I have map. I need to iterate it not from the beginning, but from the desired key.
I tried it as;</p>

<pre><code>  int candidate_s;
  map&lt;int, vector&lt;int&gt; &gt;::iterator map;
  for(map = a_list.begin()+candidate_s; map! = a_list.end(); map++){
      cout&lt;&lt;map-&gt;first&lt;&lt;"= ";
      for(vector&lt;int&gt;::iterator vec=map-&gt;second.begin(); vec!=map-&gt;second.end(); vec++){
          cout&lt;&lt;*vec&lt;&lt;" ";               
      }
  cout&lt;&lt;endl;
  }
</code></pre>

<p>and I got the following error message:</p>

<pre><code>D:\c_mess\merging\src\main.cpp no match for 'operator+' in '(+a_list)-&gt;std::map&lt;_Key, _Tp, _Compare, _Alloc&gt;::begin [with _Key = int, _Tp = std::vector&lt;int, std::allocator&lt;int&gt; &gt;, _Compare = std::less&lt;int&gt;, _Alloc = std::allocator&lt;std::pair&lt;const int, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt;]() + candidate_s' 
</code></pre>

<p>Please help me to rectify this.</p>
