title: Returning a c++ std::vector without a copy?
body: <p>Is it possible to return a standard container from a function without making a copy?</p>
  
  <p>Example code:</p>
  
  <pre><code>std::vector&lt;A&gt; MyFunc();
  
  ...
  
  std::vector&lt;A&gt; b = MyFunc();
  </code></pre>
  
  <p>As far as I understand, this copies the return value into a new vector b. Does making the function return references or something like that allow avoiding the copy?</p>