1)  A range adaptor that represents a view of underlying [ ` view `
](/w/cpp/ranges/view "cpp/ranges/view") whose elements are rvalues.

2)  [ RangeAdaptorObject  ](/w/cpp/named_req/RangeAdaptorObject "cpp/named
req/RangeAdaptorObject") . Let  e  be a subexpression and let  T  be  decltype
(  (  e  )  )  . Then the expression  views  ::  as_rvalue  (  e  )  is [
expression-equivalent ](/w/cpp/language/expressions#Expression-equivalence
"cpp/language/expressions") to:

  * [ views::  all  ](http://en.cppreference.com/w/cpp/ranges/all_view) (  e  )  , if it is a well-formed expression and  [ std::  same_as  ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ ranges::  range_rvalue_reference_t  ](http://en.cppreference.com/w/cpp/ranges/iterator_t) < T  > , [ ranges::  range_reference_t  ](http://en.cppreference.com/w/cpp/ranges/iterator_t) < T  >> is  true  ; 
  * as_rvalue_view  {  e  }  otherwise. 

##  Contents

  * 1  Data members 
  * 2  Member functions 
    * 2.1  Inherited from  std::ranges::view_interface 
  * 3  std::ranges::as_rvalue_view::  as_rvalue_view 
    * 3.1  Parameters 
  * 4  std::ranges::as_rvalue_view::  base 
  * 5  std::ranges::as_rvalue_view::  begin 
  * 6  std::ranges::as_rvalue_view::  end 
  * 7  std::ranges::as_rvalue_view::  size 
    * 7.1  Deduction guides 
    * 7.2  Helper templates 
    * 7.3  Notes 
    * 7.4  Example 
    * 7.5  See also 

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

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

[ (constructor)  ](/w/cpp/ranges/as_rvalue_view#ctor "cpp/ranges/as rvalue view") |  constructs an ` as_rvalue_view `   
(public member function)  
---|---  
[ base  ](/w/cpp/ranges/as_rvalue_view#base "cpp/ranges/as rvalue view") |  returns the underlying view ` V `   
(public member function)  
[ begin  ](/w/cpp/ranges/as_rvalue_view#begin "cpp/ranges/as rvalue view") |  returns the beginning iterator of the ` as_rvalue_view `   
(public member function)  
[ end  ](/w/cpp/ranges/as_rvalue_view#end "cpp/ranges/as rvalue view") |  returns the end iterator of the ` as_rvalue_view `   
(public member function)  
[ size  ](/w/cpp/ranges/as_rvalue_view#size "cpp/ranges/as rvalue view") |  returns the size of the view if it is bounded   
(public member function)  
  
#####  Inherited from  [ std::ranges::view_interface
](/w/cpp/ranges/view_interface "cpp/ranges/view interface")  
  
[ empty  ](/w/cpp/ranges/view_interface/empty "cpp/ranges/view interface/empty") (C++20)  |  returns whether the derived view is empty. Provided if it satisfies [ ` sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range") or [ ` 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_empty&action=edit)  
[ 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/