Top "Function-pointers" questions

A function pointer is a pointer to a function, which can be stored in a variable.

How do function pointers in C work?

I had some experience lately with function pointers in C. So going on with the tradition of answering your own …

c function-pointers
Callback functions in C++

In C++, when and how do you use a callback function? EDIT: I would like to see a simple example …

c++ callback function-pointers
Calling C++ class methods via a function pointer

How do I obtain a function pointer for a class member function, and later call that member function with a …

c++ function-pointers class-method
Understanding typedefs for function pointers in C

I have always been a bit stumped when I read other peoples' code which had typedefs for pointers to functions …

c function-pointers typedef
How can I use an array of function pointers?

How should I use array of function pointers in C? How can I initialize them?

c initialization function-pointers
How can I pass a member function where a free function is expected?

The question is the following: consider this piece of code: #include <iostream> class aClass { public: void aTest(int …

c++ arguments parameter-passing function-pointers pointer-to-member
Callback functions in Java

Is there a way to pass a call back function in a Java method? The behavior I'm trying to mimic …

java callback function-pointers
Function Pointers in Java

This may be something common and trivial, but I seem to be having trouble finding a concrete answer. In C# …

java pointers delegates function-pointers
Passing capturing lambda as function pointer

Is it possible to pass a lambda function as a function pointer? If so, I must be doing something incorrectly …

c++ c++11 lambda function-pointers
Using generic std::function objects with member functions in one class

For one class I want to store some function pointers to member functions of the same class in one map …

c++ function function-pointers c++11 tr1