template void quicksort(T * const tablica, int const x, int const y) { int i = x, j = y; T v = tablica[div(x + y, 2).quot], temp; do { while (tablica[i] < v) ++i; while (v < tablica[j]) --j; if (i <= j) { temp = tablica[i]; tablica[i] = tablica[j]; tablica[j] = temp; ++i; --j; } } while (i <= j); if (x < j) quicksort(tablica, x, j); if (i < y) quicksort(tablica, i, y); }