This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]