Suppose I have a container of a data type. This container has the method .size() declared and implemented. The data type has relational operators defined. Is it possible to do something like below?
The idea is that the first sorting algorithm is defined in terms of the second. I've tried to do this but, either its not possible, or Im doing it wrong. Any help would be much appreciated.