Declaring a C++ function pointer type

There are some stuff that I can’t seem able to remember, no matter how hard I try. The C++ syntax of a function pointer type is one of them.

Just one example : a function pointer type for a function returning a bool and taking an int and a char* as parameters :

typedef bool (*FUNCTION_PTR)( int, char*);

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *