Check out example codes for "string reverse iterator c++". It will help you in understanding the concepts better.

Code Example 1

// 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;
}

Code Example 2

...evil pets won

Learn ReactJs, React Native from akashmittal.com