If you have read Function pointers, you may be wondering about how you might use function pointers to call the member functions of structs and classes. And you would be right to wonder. Regular function pointers will not work. What we need for this task is member function pointers, aka pointers to members functions. StrictlyContinue reading “Member function pointers”
Category Archives: C++
Function pointers
Function pointers are a commonly used feature of both C and C++, though perhaps to a lesser extent in C++ because some of the use cases are obviated by other language features. They seem to be the cause of some confusion, especially among beginners, so I thought it might be useful to go through aContinue reading “Function pointers”