st ](/w/cpp/utility/initializer_list
"cpp/utility/initializer list") .

##  Contents

  * 1  Data members 
  * 2  Member functions 
    * 2.1  Inherited from  std::ranges::view_interface 
  * 3  std::ranges::owning_view::  owning_view 
    * 3.1  Parameters 
  * 4  std::ranges::owning_view::  operator= 
    * 4.1  Parameters 
    * 4.2  Return value 
  * 5  std::ranges::owning_view::  base 
  * 6  std::ranges::owning_view::  begin 
  * 7  std::ranges::owning_view::  end 
  * 8  std::ranges::owning_view::  empty 
  * 9  std::ranges::owning_view::  size 
  * 10  std::ranges::owning_view::  data 
    * 10.1  Helper templates 
    * 10.2  Example 
    * 10.3  See also 

  
---  
  
###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/owning_view&action=edit&section=1 "Edit
section: Data members") ]  Data members

Member name  |  Definition   
---|---  
` _r__ ` (private)  |  The underlying range of type ` R ` .   
(  exposition-only member object*  )  
  
###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/owning_view&action=edit&section=2 "Edit
section: Member functions") ]  Member functions

[ (constructor)  ](/w/cpp/ranges/owning_view#ctor "cpp/ranges/owning view") (C++20)  |  constructs an ` owning_view ` by value-initializing or move-constructing the stored range   
(public member function)  
---|---  
[ operator=  ](/w/cpp/ranges/owning_view#assign "cpp/ranges/owning view") (C++20)  |  move-assigns the stored range   
(public member function)  
[ base  ](/w/cpp/ranges/owning_view#base "cpp/ranges/owning view") (C++20)  |  returns a reference to the stored range   
(public member function)  
[ begin  ](/w/cpp/ranges/owning_view#begin "cpp/ranges/owning view") (C++20)  |  returns the beginning iterator of the stored range   
(public member function)  
[ end  ](/w/cpp/ranges/owning_view#end "cpp/ranges/owning view") (C++20)  |  returns the sentinel of the stored range   
(public member function)  
[ empty  ](/w/cpp/ranges/owning_view#empty "cpp/ranges/owning view") (C++20)  |  checks whether the stored range is empty   
(public member function)  
[ size  ](/w/cpp/ranges/owning_view#size "cpp/ranges/owning view") (C++20)  |  returns the size of the stored [ ` sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range")   
(public member function)  
[ data  ](/w/cpp/ranges/owning_view#data "cpp/ranges/owning view") (C++20)  |  returns the pointer to the beginning of the stored [ ` contiguous_range ` ](/w/cpp/ranges/contiguous_range "cpp/ranges/contiguous range")   
(public member function)  
  
#####  Inherited from  [ std::ranges::view_interface
](/w/cpp/ranges/view_interface "cpp/ranges/view interface")  
  
[ cbegin  ](/w/cpp/ranges/view_interface/cbegin "cpp/ranges/view interface/cbegin") (C++23)  |  returns a constant iterator to the beginning of the range.   
(public member function of ` std::ranges::view_interface<D> ` )  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/view_interface/dsc_cbegin&action=edit)  
[ cend  ](/w/cpp/ranges/view_interface/cend "cpp/ranges/view interface/cend") (C++23)  |  returns a sentinel for the constant iterator of the range.   
(public member function of ` std::ranges::view_interface<D> ` )  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/view_interface/dsc_cend&action=edit)  
[ operator bool  ](/w/cpp/ranges/view_interface/operator_bool "cpp/ranges/view interface/operator bool") (C++20)  |  returns whether the derived view is not empty. Provided if  [ ranges::empty ](/w/cpp/ranges/empty "cpp/ranges/empty") is applicable to it.   
(public member function of ` std::ranges::view_interface<D> ` )  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/view_interface/dsc_operator_bool&action=edit)  
[ front  ](/w/cpp/ranges/view_interface/front "cpp/ranges/view interface/front") (C++20)  |  returns the first element in the derived view. Provided if it satisfies [ ` forward_range ` ](/w/cpp/ranges/forward