It return reverse iterator to reverse end.
DeclarationFollowing is the declaration for std::string::rend.
reverse_iterator rend(); const_reverse_iterator rend() const;C++11
reverse_iterator rend() noexcept; const_reverse_iterator rend() const noexcept;Parameters
none
Return ValueIt returns a reverse iterator to the reverse end of the string.
ExceptionsNever throw any exceptions.
ExampleIn below example for std::string::rend.
#include <iostream> #include <string> int main () { std::string str ("Tutorials Point..."); for (std::string::reverse_iterator rit=str.rbegin(); rit!=str.rend(); ++rit) std::cout << *rit; return 0; }
The sample output should be like this −
...tnioP slairotuT
string.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4