py::builtins::list::crend¶
const_reverse_iterator crend() const;
Returns a constant reverse iterator to one past the last element of the reversed list.
Return value¶
A constant reverse iterator to one past the last 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.crend() - 1));
}
Output:
0