Boost logo

Boost :

From: Lloyd J Lewins (llewins_at_[hidden])
Date: 2005-02-11 17:39:45

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)

Lloyd J. Lewins
Raytheon Co.,
+1 (310) 647-8832

Boost list run by bdawes at, gregod at, cpdaniel at, john at