declare a pointer to a function ..



 DEVELOP > c-Plus-Plus > declare a pointer to a function ..

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "JDT"
Date: 30 Mar 2007 03:46:03 PM
Object: declare a pointer to a function ..
Hi,
Is there a way to have one statement to replace the two statements
below? I wonder C++ systax exists to allow declaring pFunc without
using the typedef. Your help is appreciated.
typedef void (FUNC)(vector<int>);
FUNC *pFunc;
JD
.

User: "red floyd"

Title: Re: declare a pointer to a function .. 30 Mar 2007 03:50:17 PM
JDT wrote:

Hi,

Is there a way to have one statement to replace the two statements
below? I wonder C++ systax exists to allow declaring pFunc without
using the typedef. Your help is appreciated.

typedef void (FUNC)(vector<int>);
FUNC *pFunc;


void (*pFunc)(vector<int>);
.


  Page 1 of 1

1

 


Related Articles
how do you declare pointer to such nested member function?
How to declare and use a function pointer?
how to declare a friend function that can access two class
does `C o1(C());' declare a function
How can you declare function f that...
Query: How to declare a template class member function 'extern "C"' ?
forward declare member function so that it can be friend function
How to declare function returning array of Integer pointers
how could i declare & define function in header file
Howto declare a friend function to a nested class
How to declare function returning array of Integer pointers
How can I declare and define a friend template function in a template class?
Microsoft runtime error R6025 Pure Virtual Function Call: a technicalreport
Function lookup tables?
performance of static member function vs. instance member function
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER