This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [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()
- From: Tim Shen <timshen at google dot com>
- To: éååå <805600352 at qq dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 8 Jan 2015 01:43:11 -0800
- Subject: Re: [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()
- Authentication-results: sourceware.org; auth=none
- References: <tencent_1737FA275BA843B20700F485 at qq dot com>
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