다음을 통해 공유


basic_string::const_reverse_iterator

A type that provides a random-access iterator that can read any const element in the string.

typedef std::reverse_iterator<const_iterator> const_reverse_iterator;

Remarks

A type const_reverse_iterator cannot 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 const_reverse_iterator.

Requirements

Header: <string>

Namespace: std

See Also

Concepts

basic_string Class

basic_string Members