fixstr::basic_fixed_string::rbegin
fixstr::basic_fixed_string::crbegin
#1 |
| |
#2 |
| |
#3 |
|
Returns a reverse iterator to the first character of the reversed fixed string. It corresponds to the last character of the non-reversed fixed string.
#
Parameters(none)
#
Return valueReverse iterator to the first character.
#
ComplexityConstant.
#
Example#include <algorithm>#include <fixed_string.hpp>#include <iostream>#include <iterator>#include <string>
int main(){ fixstr::fixed_string s("Exemplar!"); *s.rbegin() = 'y'; std::cout << s << '\n'; // "Exemplary"
std::string c; std::copy(s.crbegin(), s.crend(), std::back_inserter(c)); std::cout << c << '\n'; // "yralpmexE"}
ExemplaryyralpmexE