#include <iostream>
#include <string>
#include <algorithm> // for std::erase_if
int main()
{
std::string text = "Hello. This is a test string.\n";
std::erase_if(text, [](char c) {
std::string vowels = "aeiouAEIOU";
return vowels.find(c) != std::string::npos;
});
std::cout << text << std::endl;
return 0;
}