forked from boostorg/move
Fixes Issue #25
This commit is contained in:
@@ -38,7 +38,7 @@ bool test_random_shuffled(std::size_t const element_count, std::size_t const num
|
||||
|
||||
std::srand(0);
|
||||
|
||||
for (std::size_t i = 0; i != num_iter; ++i)
|
||||
for (std::size_t it = 0; it != num_iter; ++it)
|
||||
{
|
||||
::random_shuffle(elements.get(), elements.get() + element_count);
|
||||
for(std::size_t i = 0; i < (num_keys ? num_keys : element_count); ++i){
|
||||
@@ -59,8 +59,19 @@ bool test_random_shuffled(std::size_t const element_count, std::size_t const num
|
||||
return true;
|
||||
}
|
||||
|
||||
void instantiate_smalldiff_iterators()
|
||||
{
|
||||
typedef randit<int, short> short_rand_it_t;
|
||||
boost::movelib::adaptive_sort(short_rand_it_t(), short_rand_it_t(), less_int());
|
||||
|
||||
typedef randit<int, signed char> schar_rand_it_t;
|
||||
boost::movelib::adaptive_sort(schar_rand_it_t(), schar_rand_it_t(), less_int());
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
instantiate_smalldiff_iterators();
|
||||
|
||||
const std::size_t NIter = 100;
|
||||
test_random_shuffled<order_move_type>(10001, 3, NIter);
|
||||
test_random_shuffled<order_move_type>(10001, 65, NIter);
|
||||
|
||||
Reference in New Issue
Block a user