dimanche 22 février 2015

What is the (searchable) name for this syntax...?


typedef std::function<bool(int)> MyFunction;


That bool(int) template argument notation syntax - does it have a name? I tried to read C++ standard about this syntax and did not know what to search for.


Obviously, using it in other contexts seems to fail.



typedef bool(int) MyFunctionType; // does not work.


So I assume there is a special chapter about this syntax somewhere...


Thanks.


Aucun commentaire:

Enregistrer un commentaire