[edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/return_types/dsc_out_value_result&action=edit)  
  
###  [ [ edit
](/mwiki/index.php?title=cpp/algorithm/ranges&action=edit&section=7 "Edit
section: Notes") ]  Notes

[ Feature-test ](/w/cpp/utility/feature_test "cpp/utility/feature test") macro  |  Value  |  Std  |  Feature   
---|---|---|---  
[ ` __cpp_lib_ranges ` ](/w/cpp/feature_test#cpp_lib_ranges "cpp/feature test") |  201911L  |  (C++20)  |  [ Ranges library ](/w/cpp/ranges "cpp/ranges") and  constrained algorithms   
[ ` __cpp_lib_ranges_contains ` ](/w/cpp/feature_test#cpp_lib_ranges_contains "cpp/feature test") |  202207L  |  (C++23)  |  std::ranges::contains   
[ ` __cpp_lib_ranges_find_last ` ](/w/cpp/feature_test#cpp_lib_ranges_find_last "cpp/feature test") |  202207L  |  (C++23)  |  std::ranges::find_last   
[ ` __cpp_lib_ranges_fold ` ](/w/cpp/feature_test#cpp_lib_ranges_fold "cpp/feature test") |  202207L  |  (C++23)  |  ` std::ranges ` fold algorithms   
[ ` __cpp_lib_ranges_iota ` ](/w/cpp/feature_test#cpp_lib_ranges_iota "cpp/feature test") |  202202L  |  (C++23)  |  std::ranges::iota   
[ ` __cpp_lib_ranges_starts_ends_with ` ](/w/cpp/feature_test#cpp_lib_ranges_starts_ends_with "cpp/feature test") |  202106L  |  (C++23)  |  std::ranges::starts_with  ,  std::ranges::ends_with   
[ ` __cpp_lib_shift ` ](/w/cpp/feature_test#cpp_lib_shift "cpp/feature test") |  201806L  |  (C++20)  |  std::shift_left  ,  std::shift_right   
202202L  |  (C++23)  |  std::ranges::shift_left  ,  std::ranges::shift_right   
[ ` __cpp_lib_ranges_generate_random ` ](/w/cpp/feature_test#cpp_lib_ranges_generate_random "cpp/feature test") |  202403L  |  (C++26)  |  std::ranges::generate_random   
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/algorithm/ranges&oldid=170691
](https://en.cppreference.com/mwiki/index.php?title=cpp/algorithm/ranges&oldid=170691)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/algorithm/ranges "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/algorithm/ranges "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
  * [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
  * [ Printable version ](/mwiki/index.php?title=cpp/algorithm/ranges&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/algorithm/ranges&oldid=170691 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/algorithm/ranges&action=info)

  * In other languages 

  * [ Español ](http://es.cppreference.com/w/cpp/algorithm/ranges "cpp/algorithm/ranges")
  * [ 日本語 ](http://ja.cppreference.com/w/cpp/algorithm/ranges "cpp/algorithm/ranges")
  * [ Русский ](http://ru.cppreference.com/w/cpp/algorithm/ranges "cpp/algorithm/ranges")
  * [ 中文 ](http://zh.cppreference.com/w/cpp/algorithm/ranges "cpp/algorithm/ranges")

  * This page was last modified on 7 April 2024, at 08:10. 
  * This page has been accessed 143,118 times. 

  * [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy")
  * [ About cppreference.com ](/w/Cppreference:About "Cppreference:About")
  * [ Disclaimers ](/w/Cppreference:General_disclaimer "Cppreference:General disclaimer")

  * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppr