Im new in C++ and im trying to understand the logic behind using the keyword "using" in C++. This type of question might have been asked but i ran into problems trying to find useful information containing the word "using". What i want to do is to get a variable which is a pointer to a function, which returns a pointer to int and takes a pointer to int as parameter. What i tried to do:
definition of the function:
int* funct (int* p) {cout << "function called"; return p;}
Now here is what i would like to do if i was coding in C:
int* (*ptr)(int*) = &funct;
What i tried to do is :
using ptr = int* (*) (int*);
But when i try to use ptr like ptr = &func i get an error signalizing 'expected an identifier'.
If you decide to help me please specify which * responds to which demand ("this * is here because you need pointer to a function" etc)