Boost logo

Boost :

From: Nigel Stewart (nigels_at_[hidden])
Date: 2003-07-29 05:04:36


> My feeling is that with optional auto-resize feature circular_buffer<> may
> hit the sweet spot of being good enough for 80% apps. The auto-resize would
> kick in only when user explicitly asked for it.

        I suppose my resistance to that is partly aestetic.
        Having a container that is array-like with circularity
        is a tidier concept. Since the uses that I have for
        it do not requiring resizing, it seems extraneous in
        that context.

        Having said all that, it's Jan that remains to be
        convinced.. :-)

>>In relation to the previous discussion I thought an
>>alternative container may be a circular_deque that could
>>have the kind of flexibility with resizing that
>>also sounds desirable.

        Does a circular_deque sound like the right solution
        to your particular application, rather than a
        vector-like resizing contiguous circular buffer?

Cheers,

Nigel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk