h_iter&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/algorithm&action=edit&section=7
"Edit section: Modifying sequence operations") ]  Modifying sequence
operations

####  [ [ edit ](/mwiki/index.php?title=cpp/algorithm&action=edit&section=8
"Edit section: Copy operations") ]  Copy operations

Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") `  
---  
[ copy  copy_if  ](/w/cpp/algorithm/copy "cpp/algorithm/copy") (C++11)  |  copies a range of elements to a new location   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_copy&action=edit)  
[ ranges::copy  ranges::copy_if  ](/w/cpp/algorithm/ranges/copy "cpp/algorithm/ranges/copy") (C++20)  (C++20)  |  copies a range of elements to a new location   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_copy&action=edit)  
[ copy_n  ](/w/cpp/algorithm/copy_n "cpp/algorithm/copy n") (C++11)  |  copies a number of elements to a new location   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_copy_n&action=edit)  
[ ranges::copy_n  ](/w/cpp/algorithm/ranges/copy_n "cpp/algorithm/ranges/copy n") (C++20)  |  copies a number of elements to a new location   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_copy_n&action=edit)  
[ copy_backward  ](/w/cpp/algorithm/copy_backward "cpp/algorithm/copy backward") |  copies a range of elements in backwards order   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_copy_backward&action=edit)  
[ ranges::copy_backward  ](/w/cpp/algorithm/ranges/copy_backward "cpp/algorithm/ranges/copy backward") (C++20)  |  copies a range of elements in backwards order   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_copy_backward&action=edit)  
[ move  ](/w/cpp/algorithm/move "cpp/algorithm/move") (C++11)  |  moves a range of elements to a new location   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_move&action=edit)  
[ ranges::move  ](/w/cpp/algorithm/ranges/move "cpp/algorithm/ranges/move") (C++20)  |  moves a range of elements to a new location   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_move&action=edit)  
[ move_backward  ](/w/cpp/algorithm/move_backward "cpp/algorithm/move backward") (C++11)  |  moves a range of elements to a new location in backwards order   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_move_backward&action=edit)  
[ ranges::move_backward  ](/w/cpp/algorithm/ranges/move_backward "cpp/algorithm/ranges/move backward") (C++20)  |  moves a range of elements to a new location in backwards order   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_move_backward&action=edit)  
  
####  [ [ edit ](/mwiki/index.php?title=cpp/algorithm&action=edit&section=9
"Edit section: Swap operations") ]  Swap operations

Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") ` ` ` (until C++11)  
---  
Defined in header ` [ <utility> ](/w/cpp/header/utility "cpp/header/utility")
` ` ` (since C++11)  
Defined in header ` [ <string_view> ](/w/cpp/header/string_view
"cpp/header/string view") `  
[ swap  ](/w/cpp/algorithm/swap "cpp/algorithm/swap") |  swaps the values of two objects   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_swap&action=edit)  
Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") `  
[ swap_ranges  ](/w/cpp/algorithm/swap_ranges "cpp/algorithm/swap ranges") |  swaps two ranges