|
Boost : |
From: Joel Young (jdy_at_[hidden])
Date: 2004-09-03 21:32:32
Its
me say:
>> priority. The head/front/pop operator would
>> then select based on the distribution.
Wyrm Say:
> order? Could you give an example of a few lines of code that demonstrate the
> usage?
It would be used exactly like a priority queue, except that the
next item returned would be selected randomly, either by some
weight based on the priority (one case, bout like you have)
or based on its order. If it was one from the front then
50 percent chance, 2 from the front 25% and so on. (just an
example)
Joel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk