Top "Function-pointers" questions

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

"unpacking" a tuple to call a matching function pointer

I'm trying to store in a std::tuple a varying number of values, which will later be used as arguments …

c++ function-pointers c++11 variadic-templates iterable-unpacking
How to make a function return a pointer to a function? (C++)

I'm trying to make a function that takes a character, then returns a pointer to a function depending on what …

c++ return-value function-pointers
Function pointers casting in C++

I have a void pointer returned by dlsym(), I want to call the function pointed by the void pointer. So …

c++ casting function-pointers
Using a STL map of function pointers

I developed a scripting engine that has many built-in functions, so to call any function, my code just went into …

c++ stl map function-pointers
Javascript Function-Pointer Assignment

Consider this javascript code: var bar = function () { alert("A"); } var foo = bar; bar = function () { alert("B"); }; foo(); When running this …

javascript function-pointers
Usage and Syntax of std::function

It is necessary to me to use std::function but I don't know what the following syntax means. std::function&…

c++ function-pointers std-function
Function pointers and address of a function

So I figured when making function pointers, you do not need the operator & to get the address of the …

c function pointers function-pointers
How to get function's name from function's pointer in Linux kernel?

How to get function's name from function's pointer in C? Edit: The real case is: I'm writing a linux kernel …

c linux-kernel function-pointers
Python, how to pass an argument to a function pointer parameter?

I only just started learning Python and found out that I can pass a function as the parameter of another …

python callback function-pointers
C++ lambda with captures as a function pointer

I was playing with C++ lambdas and their implicit conversion to function pointers. My starting example was using them as …

c++ lambda function-pointers c++11