I'm looking for something like
string str; some_function_that_calls_callback(std::[name]<string>(str))
Where [name] is a functor that assigns the value passed into it to the given variable. Is that already in the standard library?
Aucun commentaire:
Enregistrer un commentaire