{
str.erase(res);
}
Hi, any idea why this std::string::erase erases both 'o' characters instead of just the first one?
what is type of that auto res?
Iterator I guess
so with string::erase(iterator) it should remove that one char in that index?
It removes two of them :-(
Обсуждают сегодня