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: vector<> can probably never grow to it's maximum size!


Dhruv Matani wrote:

// Ok, we did not get how much we asked for. But the allocate(n, hint)
is implemented such that if the allocator could not allocate the
required memory, it gives us whatever little it can, and sets
settle_for_less_memory to the number of objects that it actually has
allocated space for. This magic should go into the allocator.


This is interesting, but I cannot understand anymore what you want to work
on!! Do you want to work on a new allocator? Or improve the conformance
of std::vector? Or specialize its behavior for a new allocator? Or you want
to change the standard as far as vector memory allocation is concerned?

I'm confused, just let us know and we can plan the *remaining* tasks... ;)

Paolo.


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