Is it possible to specify the starting position for the string being searched with std::find
?
something like
std::string str = "kjsdfsdxksldfjsldjf";
int position = str.find("x", 2);
So it will start searching from index 2
? I have a recursive function and need to specify the next starting pos (I'm not interested in searching every occurrence of the character with while/for loop)