reverse_iterator rbegin();const_reverse_iterator rbegin() const;
reverse_iterator rbegin() noexcept;const_reverse_iterator rbegin() const noexcept;
1234567891011
// string::rbegin/rend #include <iostream> #include <string> int main () { std::string str ("now step live..."); for (std::string::reverse_iterator rit=str.rbegin(); rit!=str.rend(); ++rit) std::cout << *rit; return 0; }
...evil pets won