Home
last modified time | relevance | path

Searched refs:__remaining (Results 1 – 1 of 1) sorted by relevance

/haiku/headers/cpp/
H A Dstl_algo.h869 _Distance __remaining = 0; in random_sample_n() local
870 distance(__first, __last, __remaining); in random_sample_n()
871 _Distance __m = min(__n, __remaining); in random_sample_n()
874 if (__random_number(__remaining) < __m) { in random_sample_n()
880 --__remaining; in random_sample_n()
892 _Distance __remaining = 0; in random_sample_n() local
893 distance(__first, __last, __remaining); in random_sample_n()
894 _Distance __m = min(__n, __remaining); in random_sample_n()
897 if (__rand(__remaining) < __m) { in random_sample_n()
903 --__remaining; in random_sample_n()