void RemovePet(std::vector<Pet> & pets, std::string name) { pets.erase( std::remove_if(pets.begin(), pets.end(), [&](Pet const & pet) { return pet.Name == name; }), pets.end()); }