Share via


basic_string::reverse_iterator

A type that provides a reference to an element stored in a string.

typedef std::reverse_iterator<iterator> reverse_iterator;

Remarks

A type reverse_iterator can be used to modify the value of a character and is used to iterate through a string in reverse.

Example

See the example for rbegin for an example of how to declare and use reverse_iterator.

Requirements

Header: <string>

Namespace: std

See Also

Reference

basic_string Class

Other Resources

basic_string Members