(Click here for a personal note from Marshall Cline.)
/ FAQ 33.12
Is the type of "pointer-to-member-function" different from "pointer-to-function"?
How do I pass a pointer-to-member-function to a signal handler, X event callback, system call that starts a thread/task, etc?
Why do I keep getting compile errors (type mismatch) when I try to use a member function as an interrupt service routine?
Why am I having trouble taking the address of a C++ function?
How can I avoid syntax errors when creating pointers to members?
How can I avoid syntax errors when calling a member function using a pointer-to-member-function?
How do I create and use an array of pointer-to-member-function?
How do I declare a pointer-to-member-function that points to a
What is the difference between the
Can I convert a pointer-to-member-function to a
Can I convert a pointer-to-function to a
I need something like function-pointers, but with more flexibility and/or thread-safety; is there another way?
What the heck is a functionoid, and why would I use one?
Can you make functionoids faster than normal function calls?
What's the difference between a functionoid and a functor?
E-mail the author
About the author
Revised Jul 4, 2012
[33.12] I need something like function-pointers, but with more flexibility and/or thread-safety; is there another way?
Use a functionoid.