From cppreference.com
constexprautoend();(since C++20)Returns a sentinel or an iterator representing the end of the drop_while_view.
Effectively returns ranges::end(base_), where
is the underlying view.
Parameters
(none)
Return value
A sentinel or an iterator representing the end of the view.
Example
Run this code
#include<cassert>#include<iostream>#include<ranges>intmain(){staticconstexprautodata={0,-1,-2,3,1,4,1,5};autoview=std::ranges::drop_while_view{data,[](intx){returnx<=0;}};assert(view.end()[-1]==5);}See also
returns an iterator to the beginning
(public member function)