Top "Function-pointers" questions

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

How can I create function pointers from a string input in MATLAB?

If I use the inline function in MATLAB I can create a single function name that could respond differently depending …

string matlab function-pointers function-handle
C++ class member function pointer to function pointer

I am using luabind as my lua to C++ wrapper. Luabind offers a method to use my own callback function …

c++ casting function-pointers luabind
Meaning of int (*) (int *) = 5 (or any integer value)

I cannot figure this out: int main() { int (*) (int *) = 5; return 0; } The above assignment compiles with g++ c++11. I know that …

c++ pointers function-pointers
Virtual Methods or Function Pointers

When implementing polymorphic behavior in C++ one can either use a pure virtual method or one can use function pointers (…

c++ function-pointers virtual-functions
Can Java lambdas bind methods to their parameters?

How to pass a method as a parameter using lambdas is discussed here: Java Pass Method as Parameter In other …

java lambda function-pointers function-binding
General query about Callback functions and Threads

I have a general question about a threads and callbacks. Say for example we have a thread running continuously along …

c++ multithreading callback function-pointers callstack
How to pass a pointer to a member function to a C function?

Possible Duplicate: Using a C++ class member function as a C callback function I'm writing an object-oriented library using a …

c++ c function-pointers winpcap calling-convention
Function pointer vs Function reference

In the code below, function-pointer and what i considered as "function-reference" seems to have identical semantics: #include <iostream> …

c++ function pointers reference function-pointers
Function pointer and calling convention

float __stdcall (*pFunc)(float a, float b) = (float (__stdcall *)(float,float))0x411280; How to declare a function pointer with calling …

c function function-pointers calling-convention
Why can't operator () of stateless functor be static?

Why is operator () of stateless functor not allowed to be static? Stateless lambda objects are convertible to pointers to free …

c++ lambda function-pointers c++14 functor