[Patch]New feature to all kind of stl container.vector::data_move() returns vector::data() that can be moved,just as unique_ptr::release() to unique_ptr::get()
Tim Shen
timshen@google.com
Thu Jan 8 09:43:00 GMT 2015
On Wed, Jan 7, 2015 at 5:51 PM, 魅影圣域 <805600352@qq.com> wrote:
> I have a new feature to add to class string,vector and so on.The feature is easy in the form like this:
> string::data_move()
> string::c_str_move()
> vector::data_move()
For data/c_str, sounds like you need std::make_move_iterator.
--
Regards,
Tim Shen
More information about the Libstdc++
mailing list