A simple ElementComparator class that can be used to sort an array of objects that support the '<' operator. More...
Static Public Member Functions | |
| static int | compareElements (ParameterType first, ParameterType second) |
A simple ElementComparator class that can be used to sort an array of objects that support the '<' operator.
This will work for primitive types and objects that implement operator<().
Example:
Array <int> myArray; DefaultElementComparator<int> sorter; myArray.sort (sorter);
| static int DefaultElementComparator< ElementType >::compareElements | ( | ParameterType | first, |
| ParameterType | second | ||
| ) | [static] |