Code:void inOrder ( void ( * ) ( T& ));
A. What does the void part mean?
B. Why is the * and the T& enclosed in parenthesis?
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.
Wow. Okay, it's starting to become clear.