title: C++ STL transform
body: <p>I try to use c++ stl library. 
  I'd like to transform a vector of string to a map of int, string.</p>
  
  <p>For example: a vector that looks like that:</p>
  
  <pre><code>const char *vinit[] = { "Sunday", "Monday", "Tuesday", "Wednesday" };
  vector &lt;string&gt; v(vinit, end(vinit));
  </code></pre>
  
  <p>Will transform to a map like that:</p>
  
  <pre><code>    map&lt;int, string&gt; map = {{ 1, "Sunday" },
                              { 2, "Monday" },
                              { 3, "Tuesday" },
                              { 4, "Wednesday" } };
  </code></pre>
  
  <p>The point is that I can't use any loops and a global index as an integer. </p>