Syntax:
#include <string> reverse_iterator rend(); const_reverse_iterator rend() const;
The function rend() returns a reverse_iterator to the beginning of the current string. rend() runs in constant time.
Related Topics: begin, end, rbegin