This is always a function declaration in C ++ (and in C), unless it appears as a parameter declaration, in which case it declares a pointer to the function.
The converse cannot be indicated:
Is "T var"? always declare an object in C ++?
No, this is not so, because it Tcan be a type of function, in which case it varwill be declared as a function, except when it appears as a parameter declaration, as indicated above.
source
share