py::builtins::range::crend
constexpr const_reverse_iterator crend() const;
Returns a constant reverse iterator to one past the last value of
the reversed range.
Warning
Iterators of range don’t support operator -> as they
are constructed on demand.
Return value
A constant reverse iterator to one past the last value of the
reversed range.
Example
#include <pypp/builtins/range.hpp>
#include <pypp/builtins/print.hpp>
int main()
{
py::range<int> range(4);
py::print(*(range.crend() - 1));
}
Output: