e first N elements of a sequence   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_for_each_n&action=edit)  
[ ranges::count  ranges::count_if  ](/w/cpp/algorithm/ranges/count "cpp/algorithm/ranges/count") (C++20)  (C++20)  |  returns the number of elements satisfying specific criteria   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_count&action=edit)  
[ ranges::mismatch  ](/w/cpp/algorithm/ranges/mismatch "cpp/algorithm/ranges/mismatch") (C++20)  |  finds the first position where two ranges differ   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_mismatch&action=edit)  
[ ranges::equal  ](/w/cpp/algorithm/ranges/equal "cpp/algorithm/ranges/equal") (C++20)  |  determines if two sets of elements are the same   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_equal&action=edit)  
[ ranges::lexicographical_compare  ](/w/cpp/algorithm/ranges/lexicographical_compare "cpp/algorithm/ranges/lexicographical compare") (C++20)  |  returns  true  if one range is lexicographically less than another   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_lexicographical_compare&action=edit)  
[ ranges::find  ranges::find_if  ranges::find_if_not  ](/w/cpp/algorithm/ranges/find "cpp/algorithm/ranges/find") (C++20)  (C++20)  (C++20)  |  finds the first element satisfying specific criteria   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_find&action=edit)  
[ ranges::find_last  ranges::find_last_if  ranges::find_last_if_not  ](/w/cpp/algorithm/ranges/find_last "cpp/algorithm/ranges/find last") (C++23)  (C++23)  (C++23)  |  finds the last element satisfying specific criteria   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_find_last&action=edit)  
[ ranges::find_end  ](/w/cpp/algorithm/ranges/find_end "cpp/algorithm/ranges/find end") (C++20)  |  finds the last sequence of elements in a certain range   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_find_end&action=edit)  
[ ranges::find_first_of  ](/w/cpp/algorithm/ranges/find_first_of "cpp/algorithm/ranges/find first of") (C++20)  |  searches for any one of a set of elements   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_find_first_of&action=edit)  
[ ranges::adjacent_find  ](/w/cpp/algorithm/ranges/adjacent_find "cpp/algorithm/ranges/adjacent find") (C++20)  |  finds the first two adjacent items that are equal (or satisfy a given predicate)   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_adjacent_find&action=edit)  
[ ranges::search  ](/w/cpp/algorithm/ranges/search "cpp/algorithm/ranges/search") (C++20)  |  searches for a range of elements   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_search&action=edit)  
[ ranges::search_n  ](/w/cpp/algorithm/ranges/search_n "cpp/algorithm/ranges/search n") (C++20)  |  searches for a number consecutive copies of an element in a range   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_search_n&action=edit)  
[ ranges::contains  ranges::contains_subrange  ](/w/cpp/algorithm/ranges/contains "cpp/algorithm/ranges/contains") (C++23)  (C++23)  |  checks if the range contains the given element or subrange   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_contains&action=edit)  
[ ranges::starts_with  ](/w/cpp/algorithm/ranges/starts_with "cpp/algorithm/ranges/starts with") (C++23)  |  checks w