Exercise 6-5
Write an analysis function to call optimistic_median.
Solution
This is covered under my Solution to Exercise 6-0 (Part 5 / 7). The analysis function is called optimistic_median_analysis (stored in the source file optimistic_median_analysis.cpp). It essentially parses the (pointer or memory address of the) optimistic_median function as an argument to another (transform) function. For this to work the optimistic_median function must not be overloaded.
Hi Jonny, I think the link to 6-0 should actually be:
http://mathalope.co.uk/2014/09/08/accelerated-c-solution-to-exercise-6-0-part-5-7/
Thanks for spotting Hal – corrected!