find location of last instance of character in string C++ code example
Example: find last occurrence of character in string c++
auto find_char = 'a'
size_t last_occurence_index = str.find_last_of(find_char);
auto find_char = 'a'
size_t last_occurence_index = str.find_last_of(find_char);