|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-05-01 16:05:58
"Olaf Krzikalla" <krzikalla_at_[hidden]> wrote in message
news:d52d51$r2s$1_at_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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk