ppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_binary_search&action=edit)  
[ ranges::binary_search  ](/w/cpp/algorithm/ranges/binary_search "cpp/algorithm/ranges/binary search") (C++20)  |  determines if an element exists in a partially-ordered range   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_binary_search&action=edit)  
  
####  [ [ edit ](/mwiki/index.php?title=cpp/algorithm&action=edit&section=20
"Edit section: Set operations \(on sorted ranges\)") ]  Set operations (on
sorted ranges)

Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") `  
---  
[ includes  ](/w/cpp/algorithm/includes "cpp/algorithm/includes") |  returns  true  if one sequence is a subsequence of another   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_includes&action=edit)  
[ ranges::includes  ](/w/cpp/algorithm/ranges/includes "cpp/algorithm/ranges/includes") (C++20)  |  returns  true  if one sequence is a subsequence of another   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_includes&action=edit)  
[ set_union  ](/w/cpp/algorithm/set_union "cpp/algorithm/set union") |  computes the union of two sets   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_set_union&action=edit)  
[ ranges::set_union  ](/w/cpp/algorithm/ranges/set_union "cpp/algorithm/ranges/set union") (C++20)  |  computes the union of two sets   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_set_union&action=edit)  
[ set_intersection  ](/w/cpp/algorithm/set_intersection "cpp/algorithm/set intersection") |  computes the intersection of two sets   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_set_intersection&action=edit)  
[ ranges::set_intersection  ](/w/cpp/algorithm/ranges/set_intersection "cpp/algorithm/ranges/set intersection") (C++20)  |  computes the intersection of two sets   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_set_intersection&action=edit)  
[ set_difference  ](/w/cpp/algorithm/set_difference "cpp/algorithm/set difference") |  computes the difference between two sets   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_set_difference&action=edit)  
[ ranges::set_difference  ](/w/cpp/algorithm/ranges/set_difference "cpp/algorithm/ranges/set difference") (C++20)  |  computes the difference between two sets   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_set_difference&action=edit)  
[ set_symmetric_difference  ](/w/cpp/algorithm/set_symmetric_difference "cpp/algorithm/set symmetric difference") |  computes the symmetric difference between two sets   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_set_symmetric_difference&action=edit)  
[ ranges::set_symmetric_difference  ](/w/cpp/algorithm/ranges/set_symmetric_difference "cpp/algorithm/ranges/set symmetric difference") (C++20)  |  computes the symmetric difference between two sets   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_set_symmetric_difference&action=edit)  
  
####  [ [ edit ](/mwiki/index.php?title=cpp/algorithm&action=edit&section=21
"Edit section: Merge operations \(on sorted ranges\)") ]  Merge operations (on
sorted ranges)

Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") `  
---  
[ merge  ](/w/cpp/algorithm/merge "cpp/algorithm/merge") |  merges two sorted ranges   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Temp