STL question

Kevin Buettner kev@primenet.com
Fri, 9 Mar 2001 16:36:28 -0700


On Mar 9,  2:18pm, Lucas Vogel wrote:

> If I needed to create a dynamic array of objects(where I don't have a set
> number of elements set), what would be the best way to go about implementing
> this? My guess was to have a list of vectors using the STL, but I'd like to
> know of any other ways to do this. Plus, I like seeing traffic on the
> plug-devel list, so shoot me :)

See chapter 6 in the "STL Tutorial and Reference Guide".  If it's
going to be a sparse array, you might also consider using a hash
table.

Since I don't know what the problem is that you're trying to solve,
I can't give a more specific recommendation.

Kevin