Top "Function-pointers" questions

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

Comparing std::functions for equality?

How can I compare two C++11 std::functions with operator==, and return true if both of said functions refer to …

c++ c++11 function-pointers std-function
Invalid use of non-static member function c++

I am following this example. But when I compile, it returns an error: Invalid use of non-static member function at …

c++ function-pointers member-function-pointers
C++ Pointer to virtual function

If you have a struct like this one struct A { void func(); }; and a reference like this one A& …

c++ function-pointers virtual-functions member-function-pointers
c++/cli pass (managed) delegate to unmanaged code

How do I pass a function pointer from managed C++ (C++/CLI) to an unmanaged method? I read a few …

delegates c++-cli interop function-pointers
How to format a function pointer?

Is there any way to print a pointer to a function in ANSI C? Of course this means you have …

c function-pointers
How do I get the argument types of a function pointer in a variadic template class?

This is a follow up of this problem: Generic functor for functions with any argument list I have this functor …

c++ c++11 function-pointers functor variadic-templates
What is the difference between delegate in c# and function pointer in c++?

Possible Duplicate: are there function pointers in c#? I'm interested in finding the difference between delegate in C# and function …

c# c++ delegates function-pointers
Please explain syntax rules and scope for "typedef"

What are the rules? OTOH the simple case seems to imply the new type is the last thing on a …

c++ c function-pointers typedef
How to declare an __stdcall function pointer

I tried this typedef void (* __stdcall MessageHandler)(const Task*); This compiles but gives me this warning (VS2003): warning C4229: anachronism …

c++ visual-c++ function-pointers calling-convention
In Objective C what is the equivalent of passing a function pointer in C?

@implementation ThisObject -(void)start { SomeOtherObject *someOtherObject = [SomeOtherObject alloc]; [someOtherObject doSomethingAndCallThisFunctionWhenUrDone:myCallBackFunction :self]; } -(void)myCallBackFunction { // :) } Basically, how can I …

objective-c function-pointers