rbegin

Syntax:

    #include <vector>
    reverse_iterator rbegin();
    const_reverse_iterator rbegin() const;

The rbegin() function returns a reverse_iterator to the end of the current vector (the position of the last element).

rbegin() runs in constant time.

Related Topics: begin, end, rend