title: How to generate vector like list comprehension
body: <p>In C++11,</p>
  
  <pre><code>vector&lt;string&gt; blockPathList;
  for(int i = 0; i &lt; blockNum; i++)
  {
      blockPathList.push_back(desPath + "part" + to_string(i));
  }
  </code></pre>
  
  <p>Is it possible to re-write the code above like list comprehension, or shorter and more concise?</p>