.. index:: py::builtins::range::rend .. _doxycast_pypp_classpy_1_1builtins_1_1range_1ad9067bf6234caf9a535365b825bb701a: .. _py-builtins-range-rend: *py::builtins::range::*\ rend ============================= .. code-block:: cpp constexpr const_reverse_iterator rend() 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. .. tip:: Equivalent to :ref:`py-builtins-range-crend`. .. graphviz:: ../assets/range-rbegin-rend.dot Return value ------------ A constant reverse iterator to one past the last value of the reversed range. Complexity ---------- Constant. Example ------- .. code-block:: cpp #include #include int main() { py::range range(4); py::print(*(range.rend() - 1)); } **Output**: .. code-block:: text 0