#include <combsort.h>

Public Member Functions | |
| int | Sort (T *_array, size_t _size) |
| Sorts an array using the CombSort method. | |
CombSort isn't intended for mainstream use, but it's technically very interesting. The main reason it's interesting is that it was created by making some relatively small changes to BubbleSort. These tiny changes made a new algorithm that still rivals more mainstream algorithms like HeapSort, ShellSort, and others.
| int Sort | ( | T * | _array, | |
| size_t | _size | |||
| ) | [inline, virtual] |
Sorts an array using the CombSort method.
| _array | The array to sort. | |
| _size | The size of the array to sort. |
Implements Sorter< T >.
References CrissCross::Data::Compare(), and Sorter< T >::Swap().
1.5.8