Lines Matching refs:last
60 void choose (InputIter first, InputIter last, OutputIter result, int numItems);
63 T choose (InputIter first, InputIter last);
67 T chooseWeighted (InputIter first, InputIter last, WeightIter weight);
70 void shuffle (Iterator first, Iterator last);
105 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems)
112 for (ndx = 0; first != last; ++first, ++ndx)
128 T Random::choose (InputIter first, InputIter last)
131 DE_ASSERT(first != last);
132 choose(first, last, &val, 1);
137 T Random::chooseWeighted (InputIter first, InputIter last, WeightIter weight)
142 for (ndx = 0; (first + ndx) != last; ndx++)
149 InputIter lastNonZero = last;
151 for (ndx = 0; (first + ndx) != last; ndx++)
163 DE_ASSERT(lastNonZero != last);
168 void Random::shuffle (Iterator first, Iterator last)
173 int numItems = (int)std::distance(first, last);