ror: underlying element is read-only
     
        int a[]{-5, 10, 15};
        auto ai = std::[ranges::crbegin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/crbegin)(a);
        [assert](http://en.cppreference.com/w/cpp/error/assert)(*ai == 15);
     
        // auto x_x = std::ranges::crbegin(std::vector<int>{6, 6, 6});
        // ill-formed: the argument is an rvalue (see Notes ↑)
     
        auto si = std::[ranges::crbegin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/crbegin)([std::span](http://en.cppreference.com/w/cpp/container/span){a}); // OK
        [assert](http://en.cppreference.com/w/cpp/error/assert)(*si == 15);
        static_assert
        (
            std::[ranges::enable_borrowed_range](http://en.cppreference.com/w/cpp/ranges/borrowed_range)<[std::remove_cv_t](http://en.cppreference.com/w/cpp/types/remove_cv)<decltype([std::span](http://en.cppreference.com/w/cpp/container/span){a})>>
        );
    }

###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/crbegin&action=edit&section=2 "Edit
section: See also") ]  See also

[ ranges::rbegin  ](/w/cpp/ranges/rbegin "cpp/ranges/rbegin") (C++20)  |  returns a reverse iterator to a range   
(customization point object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_rbegin&action=edit)  
---|---  
[ rbegin  crbegin  ](/w/cpp/iterator/rbegin "cpp/iterator/rbegin") (C++14)  |  returns a reverse iterator to the beginning of a container or array   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/iterator/dsc_rbegin&action=edit)  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/crbegin&oldid=158244
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/crbegin&oldid=158244)
"

#####  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/ranges/crbegin "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/ranges/crbegin "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/ranges/crbegin&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/crbegin&oldid=158244 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/ranges/crbegin&action=info)

  * In other languages 

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

  * This page was last modified on 8 September 2023, at 10:30. 
  * This page has been accessed 11,301 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.cppreference.com/mwiki/images/9/94/powered_by_tigertech_88x31.png) ](http://