Created
October 6, 2015 22:38
-
-
Save kixorz/1613bee82f45369133f5 to your computer and use it in GitHub Desktop.
C++ function pointer example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://fuckingblocksyntax.com/