How execute code in function lambda parameter?
auto lambda = [] (std::function<void(std::string,std::string)>) { //run function, work with string parameters };
std::function<void(std::string, std::string)> work = [](std::string, std::string) {};
lambda(work);
Aucun commentaire:
Enregistrer un commentaire