class TSwap |
Defines the basic behaviour for swapping two elements of an array.
The class is abstract. A derived class must be defined and implemented to use the functionality.
A derived class can define how to swap two elements of an array. In practice, this means providing an implementation for the virtual function Swap().
To support this, the derived class is also likely to need a pointer to the array itself and suitable constructors and/or other member functions to set such a pointer.