#include
#include
#include
#include
#include
int main()
{
std::list lt{'5', 'a', 'c','g', '7', 't', '!'};
std::cout << std::endl;</p>
std::copy(lt.begin(), lt.end(), std::ostream_iterator(std::cout, " "));
lt.remove_if([](char& var1)
{
return !(std::tolower(var1, std::locale()) >= 'a' && std::tolower(var1, std::locale()) <= 'z');</p>
});
std::cout << std::endl;</p>
std::copy(lt.begin(), lt.end(), std::ostream_iterator(std::cout, " "));
}