#include <iostream>
#include <algorithm>

bool isVowel( char a )
{
    return std::string( "aeiouy" ).find( a ) != std::string::npos;
}


int main() {
	std::string source = "hello world";
	std::string target;
	std::copy_if( source.begin(), source.end(), std::back_inserter( target ),
	    []( char c ) { return not isVowel( c ); } );
	std::cout << target << std::endl;
	return 0;
}