c++ string reverse

string s = "hello";
reverse(s.begin(), s.end());
cout << s << endl;

STLのincludeでreverse()が定義されているようだ。