About std::vector::resize().
Dhruv Matani
dhruvbird@gmx.net
Wed Jun 9 13:52:00 GMT 2004
On Sun, 2004-05-30 at 14:47, Paolo Carlini wrote:
> Dhruv Matani wrote:
>
> >> That's ok... provided the final result doesn't apply only to
> >> vector<vector>>, of course... ;) ;)
> >
> > Yes.
> >
> > It would apply to vector <any_STL_container>
>
> I see. Honestly, I will be away all the next week and will not be able
> to follow in detail your work 'til next week. Anyway, I first, preliminary,
> comment: any chances we can begin with the simple improvement sketched by
> Carlo? That would apply to builtin types, if I understand well, and
> definitely,
> *much* more code around would benefit from it. Seems straightforward, right?
Continuing from where we left off last time, I have a patch for the
vector that I am currently using.
I have also attached the file used to test out the patch, because I
believe that there is no test-suite file that exercises
vector<vector<>>.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.vector.09062004.dhruv
Type: text/x-patch
Size: 27434 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040609/51f9d131/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vec_vec_test.cpp
Type: text/x-c++
Size: 3547 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040609/51f9d131/attachment-0001.bin>
More information about the Libstdc++
mailing list