a std::function object is created like this:
std::function<int(int)> f = ...
since <int(int)> is not what i usually know from a template i would like to know how to do soemthing like this in my own class? Like could we us for example in map templates like map<std::string -> int> ?
Aucun commentaire:
Enregistrer un commentaire