title: STL Algorithm for generating a vector
body: <p>I want to generate a vector using STL algorithm to achieve the following</p>
  
  <pre><code>const int N1 = 10; // This can vary
  const int offset = 3; // This also can vary
  std::vector&lt;int&gt; chans(10);
  for (size_t i = 0; i &lt; chans.size(); i++)
  {
      chans[i] = offset + N1*i;
  }
  </code></pre>
  
  <p>Any suggestions?</p>