mercredi 1 novembre 2017

Passing std::function as parameter to lambda

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