Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2002-10-30 08:25:38

I think an interesting thing to have is a resizable array template whose
initial footprint is statically assigned. So, the programmer can first dimension
it with a reasonable size allocated on the stack without heap overhead and
only on rare occasions would the array go for the heap when this size
is exceeded. Sort of like the best of both worlds, if you know what I mean.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Gennaro Prota ha escrito:

[stuff deleted]

> BTW, is there any interest in a *resizable* array template? I'd like
> such a structure for the internals of dynamic_bitset. Compared to
> vector<>, it would provide a specialized implementation for types
> whose copy constructor cannot throw and, above all, the possibility of
> "uninitialized construction and resizing", something that is IMHO very
> useful when dealing with C APIs. The first feature can be obtained for
> vector<> too, the second one can't (by design). I have not thought to
> this with the care it deserves but this is the basic idea. Feedback,
> suggestions and insults are welcome :-)
> Genny.
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at