Code:void inOrder ( void ( * ) ( T& ));
A. What does the void part mean?
B. Why is the * and the T& enclosed in parenthesis?
This is a discussion on So here is a function declaration for a class template... within the C++ Programming forums, part of the General Programming Boards category; Code: void inOrder ( void ( * ) ( T& )); A. What does the void part mean? B. Why ...
Code:void inOrder ( void ( * ) ( T& ));
A. What does the void part mean?
B. Why is the * and the T& enclosed in parenthesis?
The Function Pointer Tutorials - Index
It looks something like inOrder takes a single function pointer as a parameter (*)
That function (when called by inOrder) would be passed a reference to T, and return void.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Wow. Okay, it's starting to become clear.