Skip to content

Commit

Permalink
refs #132 Более походящее название
Browse files Browse the repository at this point in the history
  • Loading branch information
izvolov committed Apr 17, 2021
1 parent 18b45fe commit d313381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/include/utility/io/generate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace utility

template <typename URNG, typename OutputIterator>
OutputIterator
generate_one_sorted
generate_sorted_part
(
URNG && generator,
std::size_t range_length,
Expand Down Expand Up @@ -133,14 +133,14 @@ namespace utility
{
const auto min = std::min(bounds[i - 1], bounds[i]);
const auto max = std::max(bounds[i - 1], bounds[i]);
result = generate_one_sorted(generator, block_size - 1, min, max, descending, result);
result = generate_sorted_part(generator, block_size - 1, min, max, descending, result);
*result++ = bounds[i];
}
const auto min = std::min(bounds[bounds.size() - 2], bounds[bounds.size() - 1]);
const auto max = std::max(bounds[bounds.size() - 2], bounds[bounds.size() - 1]);
const auto remainder = range_length % block_size;
const auto tail = remainder != 0 ? remainder : block_size;
return generate_one_sorted(generator, tail, min, max, descending, result);
return generate_sorted_part(generator, tail, min, max, descending, result);
}

template <typename URNG, typename OutputIterator>
Expand Down

0 comments on commit d313381

Please sign in to comment.