Skip to content

Commit

Permalink
Rename copy_to_tmp to move_to_tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Jan 21, 2024
1 parent d6cf373 commit 0dedf8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gfx/timsort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class TimSort {
return rotateRight(base1, base2 + len2);
}

copy_to_tmp(base1, len1);
move_to_tmp(base1, len1);

tmp_iter_t cursor1 = tmp_.begin();
iter_t cursor2 = base2;
Expand Down Expand Up @@ -500,7 +500,7 @@ class TimSort {
return rotateRight(base1, base2 + len2);
}

copy_to_tmp(base2, len2);
move_to_tmp(base2, len2);

iter_t cursor1 = base1 + len1;
tmp_iter_t cursor2 = tmp_.begin() + (len2 - 1);
Expand Down Expand Up @@ -616,7 +616,7 @@ class TimSort {
}
}

void copy_to_tmp(iter_t const begin, diff_t len) {
void move_to_tmp(iter_t const begin, diff_t len) {
tmp_.assign(std::make_move_iterator(begin),
std::make_move_iterator(begin + len));
}
Expand Down

0 comments on commit 0dedf8f

Please sign in to comment.