diff --git a/reference/list/list/splice.md b/reference/list/list/splice.md index a04fcd5073..1ef73e11bc 100644 --- a/reference/list/list/splice.md +++ b/reference/list/list/splice.md @@ -74,7 +74,6 @@ void splice(const_iterator position, list&& x, ```cpp example #include #include -#include // move template void print(const std::list& ls) @@ -90,7 +89,7 @@ int main() std::list xs = {4, 5, 6}; std::list ys = {1, 2, 3}; - xs.splice(xs.begin(), std::move(ys)); + xs.splice(xs.begin(), ys); print(xs); } @@ -99,7 +98,7 @@ int main() std::list xs = {4, 5, 6}; std::list ys = {1, 2, 3}; - xs.splice(xs.begin(), std::move(ys), ys.begin()); + xs.splice(xs.begin(), ys, ys.begin()); print(xs); } @@ -108,7 +107,7 @@ int main() std::list xs = {4, 5, 6}; std::list ys = {1, 2, 3}; - xs.splice(xs.begin(), std::move(ys), ys.begin(), std::next(ys.begin(), 2)); + xs.splice(xs.begin(), ys, ys.begin(), std::next(ys.begin(), 2)); print(xs); } @@ -117,7 +116,7 @@ int main() std::list xs = {1, 2, 3}; std::list ys = {4, 5, 6}; - xs.splice(xs.end(), std::move(ys)); + xs.splice(xs.end(), ys); print(xs); } @@ -125,7 +124,6 @@ int main() ``` * splice[color ff0000] * begin()[link begin.md] -* std::move[link /reference/utility/move.md] ### 出力 ```