vendredi 4 mai 2018

Is there a functor in namespace std that assigns to a variable?

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