On Sun, 30 Dec 2001, Ben Stanley wrote:

> typedef vector<shared_ptr<Paragraph> > ParagraphList;
> 
> Of course, your choice of vector or list depends on what iterator 
> properties you want; vector gives you random access, whereas list only 
> gives you bidirectional iterators (this is all we are currently using).

This sounds reasonable to me. Except that it should be a list, rather
than a vector. We need fast insertion and deletion of paragraphs much 
more than we need random access.

This is essentially the same setup I used in the old days, in the
"new" kernel.

Greets,

Asger

Reply via email to