
1 May
2005
1 May
'05
9:05 p.m.
"Olaf Krzikalla" <krzikalla@gmx.de> wrote in message news:d52d51$r2s$1@sea.gmane.org... | Hi, | | Thorsten Ottosen wrote: | > so why not use "ordinary" views, eg. containers of pointers? | > | > it's not difficult to lay out std::vector<Foo*> s.t. no memory allocation | > occurs (except once). | It strongly depends on your application. E.g. inserting and removing | elements in the middle of a sequence rather forbids the using of | std::vector due to performance reasons. but if you're creating a linked-list on the "stack", then you need to store the list somewhere; what else can be used that vector<Foo*> ? -Thorsten