From 0dedf8faee19d78b347cb5ef9f5c870062c3e06d Mon Sep 17 00:00:00 2001 From: Morwenn Date: Sun, 21 Jan 2024 18:17:49 +0100 Subject: [PATCH] Rename copy_to_tmp to move_to_tmp --- include/gfx/timsort.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gfx/timsort.hpp b/include/gfx/timsort.hpp index e351397..3949464 100644 --- a/include/gfx/timsort.hpp +++ b/include/gfx/timsort.hpp @@ -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; @@ -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); @@ -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)); }