.. index:: py::builtins::list::rbegin .. _doxycast_pypp_classpy_1_1builtins_1_1list_1a988328a882678ec7ebf128688b1c1777: .. _py-builtins-list-rbegin: *py::builtins::list::*\ rbegin ============================== .. code-block:: cpp reverse_iterator rbegin(); // 1 const_reverse_iterator rbegin() const; // 2 1. Returns a reverse iterator to the first element of the reversed list. 2. Returns a constant reverse iterator to the first element of the reversed list. .. tip:: \(2) is equivalent to :ref:`py-builtins-list-crbegin`. .. graphviz:: ../assets/range-rbegin-rend.dot Return value ------------ 1. A reverse iterator to the first element of the reversed list. 2. A constant reverse iterator to the first element of the reversed list. Complexity ---------- Constant. Example ------- .. code-block:: cpp #include #include int main() { py::list list = {0, 0, 1, 3}; py::print(*list.rbegin()); } **Output**: .. code-block:: text 3