[assert](http://en.cppreference.com/w/cpp/error/assert)(ov2.size() == 6);
    }

Possible output:

    
    
    sizeof(ov): 32
    range-for: cosmos

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

[ ranges::ref_view  ](/w/cpp/ranges/ref_view "cpp/ranges/ref view") (C++20)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") of the elements of some other [ ` range ` ](/w/cpp/ranges/range "cpp/ranges/range")   
(class template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_ref_view&action=edit)  
---|---  
[ views::all_t  views::all  ](/w/cpp/ranges/all_view "cpp/ranges/all view") (C++20)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") that includes all elements of a [ ` range ` ](/w/cpp/ranges/range "cpp/ranges/range")   
(alias template)  (range adaptor object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_all_view&action=edit)  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/owning_view&oldid=160903
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/owning_view&oldid=160903)
"

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

  * In other languages 

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

  * This page was last modified on 18 October 2023, at 11:52. 
  * This page has been accessed 17,282 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://www.tigertech.net/referral/cppreference.com)