
30 Apr
2005
30 Apr
'05
3:09 p.m.
| frank@cyblogic.de wrote: | > As far as I understood the stored elements are not owned by the | > containers itself, but allocated by some other object. | Right. Actually the term 'store' is little bit misleading. But even in | our native language german I didn't found a better term. | | > But why not | > using a reference type and storing this in the usual non-instrusive | > containers? | Performance reasons. 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). -Thorsten