iterator/iterator "cpp/ranges/elements
view/iterator/iterator")  
[ elements_view:: _iterator_ ::base
](/w/cpp/ranges/elements_view/iterator/base "cpp/ranges/elements
view/iterator/base")  
[ elements_view:: _iterator_ ::operator*
](/w/cpp/ranges/elements_view/iterator/operator* "cpp/ranges/elements
view/iterator/operator*")  
[ elements_view:: _iterator_ ::operator[]
](/w/cpp/ranges/elements_view/iterator/operator_at "cpp/ranges/elements
view/iterator/operator at")  
[ elements_view:: _iterator_ ::operator++  
elements_view:: _iterator_ ::operator++  (int)  
elements_view:: _iterator_ ::operator--  
elements_view:: _iterator_ ::operator--  (int)  
elements_view:: _iterator_ ::operator+=  
elements_view:: _iterator_ ::operator-=
](/w/cpp/ranges/elements_view/iterator/operator_arith "cpp/ranges/elements
view/iterator/operator arith")  
[ operator==  (elements_view:: _iterator_ )  
operator< (elements_view:: _iterator_ )  
operator> (elements_view:: _iterator_ )  
operator<=  (elements_view:: _iterator_ )  
operator>=  (elements_view:: _iterator_ )  
operator<=> (elements_view:: _iterator_ )
](/w/cpp/ranges/elements_view/iterator/operator_cmp "cpp/ranges/elements
view/iterator/operator cmp")  
[ operator+  (elements_view:: _iterator_ )  
operator-  (elements_view:: _iterator_ )
](/w/cpp/ranges/elements_view/iterator/operator_arith2 "cpp/ranges/elements
view/iterator/operator arith2")  
[ Sentinel ](/w/cpp/ranges/elements_view/sentinel "cpp/ranges/elements
view/sentinel")  
[ elements_view:: _sentinel_ :: _sentinel_
](/w/cpp/ranges/elements_view/sentinel/sentinel "cpp/ranges/elements
view/sentinel/sentinel")  
[ elements_view:: _sentinel_ ::base
](/w/cpp/ranges/elements_view/sentinel/base "cpp/ranges/elements
view/sentinel/base")  
[ operator==  (elements_view:: _iterator_ ,elements_view:: _sentinel_ )
](/w/cpp/ranges/elements_view/sentinel/operator_cmp "cpp/ranges/elements
view/sentinel/operator cmp")  
[ operator-  (elements_view:: _iterator_ ,elements_view:: _sentinel_ )
](/w/cpp/ranges/elements_view/sentinel/operator- "cpp/ranges/elements
view/sentinel/operator-")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/elements_view/navbar_content&action=edit)

Defined in header ` [ <ranges> ](/w/cpp/header/ranges "cpp/header/ranges") ` |  |   
---|---|---  
template  < [ ranges::  input_range
](http://en.cppreference.com/w/cpp/ranges/input_range) V, [ std::  size_t
](http://en.cppreference.com/w/cpp/types/size_t) N  >  
requires [ ranges::  view  ](http://en.cppreference.com/w/cpp/ranges/view) < V
> &&  
has  \-  tuple  \-  element  < [ ranges::  range_value_t
](http://en.cppreference.com/w/cpp/ranges/iterator_t) < V  > , N  > &&  
has  \-  tuple  \-  element  < [ std::  remove_reference_t
](http://en.cppreference.com/w/cpp/types/remove_reference) <  
[ ranges::  range_reference_t
](http://en.cppreference.com/w/cpp/ranges/iterator_t) < V  >> , N  > &&  
returnable  \-  element  < [ ranges::  range_reference_t
](http://en.cppreference.com/w/cpp/ranges/iterator_t) < V  > , N  >  
class  elements_view  :  public  [ ranges::  view_interface  ](http://en.cppreference.com/w/cpp/ranges/view_interface) < elements_view  < V, N  >> ;  |  (1)  |  (since C++20)   
namespace  views  {  
template  < [ std::  size_t  ](http://en.cppreference.com/w/cpp/types/size_t)
N  >  
inline  constexpr  /* unspecified */  elements  =  /* unspecified */  ;  
}  |  (2)  |  (since C++20)   
Call signature  |  |   
template  < [ ranges::  viewable_range
](http://en.cppreference.com/w/cpp/ranges/viewable_range) R  >  
requires  /* see below */  
constexpr  [ ranges::  view  ](http://en.cppreference.com/w/cpp/ranges/view) auto  elements  < N  > (  R  && r  )  ;  |  |  (since C++20)   
Helper concepts  |  |   
|  (3)  |   
template  < class  T, [ std::  size_t
](http://en.cppreference.com/w/cpp/types/size_t) N  >  
concept has  \-  tuple  \-  element  =  
requires  (  T t  )  {  
typename  [ std::  tuple_size
](http://en.cpprefer