title: Is it possible to take memory from std::string(like string move ctor does)?
body: <p>If I have my internal class that is my own version of <code>vector&lt;char&gt;</code> (I control the source) and for the sake of example I can not change it to be <code>std::string</code> is there a way to steal memory from <code>std::string</code>, just like move constructor of <code>std::string</code> does. </p>
  
  <p>So something like this:</p>
  
  <pre><code>std::string str{"abcdefghijklmnopqrstu"};
  MyVectorCharClass mvc(std::move(str)); // Constructor takes memory from str
  </code></pre>
  
  <p>I think I heard of some future proposals to add <code>.release()</code> to <code>std::string</code> or <code>std::vector</code> but I am talking about present time.</p>