Odd field in struct? c++ -



Odd field in struct? c++ -

hi wondering if explain me field in struct looks this:

struct illustration { void (someclass::*somemethod)(); };

what , how/why utilize it? thanks.

this construction contains pointer function void homecoming type , without parameters.

we set pointer address of actual function , execute function via pointer time later. function pointers convenient thing providing different functions handle task depending on circumstances.

c++

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -