Untitled

 avatar
unknown
plain_text
a month ago
170 B
3
Indexable
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