simplifying std::for_each by using std::for_all and std::any