title: C++: Fastest way to copy a section of doubles
body: <p>Currently I have the following code to copy some doubles to a different vector of doubles.</p>
  
  <pre><code>for (int i = 0;i&lt;=iTo;i++)
  {
  
      int iID= i + iOff;
      double d=m[iID];
      uTargets[iSamplePos]=d;
      iSamplePos++;
  }
  </code></pre>
  
  <p>Can somebody tell me the fastest way to do this without the "manual" iteration?</p>
  
  <p>Thank you!</p>