py::builtins::list::crbegin¶
const_reverse_iterator crbegin() const;
Returns a constant reverse iterator to first element of the reversed list.
Return value¶
A constant reverse iterator to first element of the reversed list.
Complexity¶
Constant.
Example¶
#include <pypp/builtins/list.hpp>
#include <pypp/builtins/print.hpp>
int main()
{
py::list<int> list = {0, 0, 1, 3};
py::print(*list.crbegin());
}
Output:
3