std::basic_string_view<CharT,Traits>::rbegin, std::basic_string_view<CharT,Traits>::crbegin - cppreference.com (original) (raw)

| constexpr const_reverse_iterator rbegin() const noexcept; | | (since C++17) | | ------------------------------------------------------------ | | ------------- | | constexpr const_reverse_iterator crbegin() const noexcept; | | (since C++17) |

Returns a reverse iterator to the first character of the reversed view. It corresponds to the last character of the non-reversed view.

range-rbegin-rend.svg

[edit] Parameters

(none)

[edit] Return value

const_reverse_iterator to the first character.

[edit] Complexity

Constant.

[edit] Example

[edit] See also

| | returns a reverse iterator to the end (public member function) [edit] | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | returns a reverse iterator to the beginning (public member function of std::basic_string<CharT,Traits,Allocator>) [edit] |