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: About std::vector::resize().


Dhruv Matani wrote:

1. _M_range_insert.
2. _M_fill_insert.
3. _M_insert_aux.
4. erase (both overloads).
5. insert.
6. reserve
7. resize
8. _M_allocate_and_copy.

I can prepare a patch along with a performance test-case if that's
what's required.

Is that fine?

Hi Dhruv.

First, thanks for your enthusiasm.

Personally, I would suggest working piecewise, beginning with the first case
that was discussed, resize. Therefore, present a draft but already functional
and tested patch together with some performance numbers.


Then, if we all agree about the approach, you will be able to safely proceed
with the other functions and other improvements.

Thanks again,
Paolo.


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