title: C++ Move constructor for class containing vector
body: <p>I have written a move constructor for a class in the following way:</p>
  
  <pre><code>class A
  {
  
      std::vector&lt;double&gt; m;
  
      A(A&amp;&amp; other)
          : m{other.m}
      {
      }
  }
  </code></pre>
  
  <p>Is this the correct way to move <code>other.m</code> to <code>m</code>?</p>
  
  <p>Should I be doing this instead?</p>
  
  <pre><code>A(A&amp;&amp; other)
      : m{std::move(other.m)}
  {
  }
  </code></pre>
  
  <p>Or perhaps I should be doing something else entirely?</p>