td::ranges::ref_view::  empty 
  * 8  std::ranges::ref_view::  size 
  * 9  std::ranges::ref_view::  data 
    * 9.1  Deduction guides 
    * 9.2  Helper templates 
    * 9.3  Example 
    * 9.4  Defect reports 
    * 9.5  See also 

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

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

[ (constructor)  ](/w/cpp/ranges/ref_view#ctor "cpp/ranges/ref view") (C++20)  |  constructs a ` ref_view ` that references to the given range   
(public member function)  
---|---  
[ base  ](/w/cpp/ranges/ref_view#base "cpp/ranges/ref view") (C++20)  |  returns the references to the referenced range   
(public member function)  
[ begin  ](/w/cpp/ranges/ref_view#begin "cpp/ranges/ref view") (C++20)  |  returns the beginning iterator of the referenced range   
(public member function)  
[ end  ](/w/cpp/ranges/ref_view#end "cpp/ranges/ref view") (C++20)  |  returns the sentinel of the referenced range   
(public member function)  
[ empty  ](/w/cpp/ranges/ref_view#empty "cpp/ranges/ref view") (C++20)  |  checks whether the referenced range is empty   
(public member function)  
[ size  ](/w/cpp/ranges/ref_view#size "cpp/ranges/ref view") (C++20)  |  returns the size of the referenced [ ` sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range")   
(public member function)  
[ data  ](/w/cpp/ranges/ref_view#data "cpp/ranges/ref view") (C++20)  |  returns the pointer to the beginning of the referenced [ ` 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_range "cpp/ranges/forward 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_front&action=edit)  
[ back  ](/w/cpp/ranges/view_interface/back "cpp/ranges/view interface/back") (C++20)  |  returns the last element in the derived view. Provided if it satisfies [ ` bidirectional_range ` ](/w/cpp/ranges/bidirectional_range "cpp/ranges/bidirectional range") and [ ` common_range ` ](/w/cpp/ranges/common_range "cpp/ranges/common range") .   
(public member function of ` std::ranges::view_interface<