This is a sample code snippet of a quicksort that uses templating and function pointers to allow the user to sort an array of anything from numbers to strings to structures.
The idea is, that the coder writes a small function thats return type is bool, It should return true if the first parameter is "less than" the second, or if you which to sort it in descending order then "greater than" the second parameter.
Below is an example of the quicksort being used on an array of ints, strings & a structure.
Hope this is helpful to people and provides a small insight into templating and function pointers with callback procedures.
(Note: perhaps not the best code ever, but nice)