unsure of the meaning of some code

hi,

first post here, so sorry if the question is silly :<

i'm looking though someone else's code and i see this line:

typedef double (*polarfunc)(const shcoord& sc);

where shcoord is a template which holds 3 floats. i'm not really sure what its supposed to do!

apologies, but any insight would be greatly appreciated :)

thank you for your time.
this is a "function pointer" that can take one argument of shcoord type :D of course this is a typedef and first you must create variable of polarfunc such az :

polarfunc pr;

pr = ...; // address of your function here !
Topic archived. No new replies allowed.