Boost logo

Boost :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2005-03-14 11:16:22


On Feb 11, 2005, at 5:39 PM, Lloyd J Lewins wrote:

> I notice that mutable_queue is missing a clear() function, i.e. a low
> overhead way of emptying the entire queue (without resorting to
> repeated
> pops). However, I think clear() can be implemented as follows:
>
> void clear() { clear(); }
>
> Which is efficient and (often) fast. I don't think there is any need to
> "clear" the index_array (since the constructor for mutable_queue
> doesn't
> initialize its contents)

Added.

        Doug


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