"Nigel Stewart" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> > Wouldn't it be better to use smaller internal memory block initially and
> > resize it only when demand goes up?
>
> That's a good point, but it certainly complicates both the interface
> and the semantics of the container.  Could this style of circular
> buffer be an adaptor, or perhaps a policy adaptor?
>
IMO the resize/shrink cannot be added via adaptor (unless it is very complex
one).

It may be possible to design circular_buffer<> as adaptor over [vector |
deque | list | slist | shrinkable vector | ...].

/Pavel



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to