Untitled
void erase(const std::string& target, std::string& text) { size_t pos = 0; while ((pos = text.find(target, pos)) != std::string::npos) { text.erase(pos); } }
Leave a Comment
void erase(const std::string& target, std::string& text) { size_t pos = 0; while ((pos = text.find(target, pos)) != std::string::npos) { text.erase(pos); } }