Skip to content

Instantly share code, notes, and snippets.

@kixorz
Created October 6, 2015 22:38
Show Gist options
  • Save kixorz/1613bee82f45369133f5 to your computer and use it in GitHub Desktop.
Save kixorz/1613bee82f45369133f5 to your computer and use it in GitHub Desktop.
C++ function pointer example
//function type declaration
typedef <function return type> * (* <function type name>)( <arg type>, ... ); //don't include variable names
//instance
<function type name> func;
//usage
func = &<function instance name>;
@kixorz
Copy link
Author

kixorz commented Oct 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment