Next: , Previous: GNAT Formatted_String g-forstr ads, Up: The GNAT Library

12.77 GNAT.Heap_Sort (

Provides a general implementation of heap sort usable for sorting arbitrary data items. Exchange and comparison procedures are provided by passing access-to-procedure values. The algorithm used is a modified heap sort that performs approximately N*log(N) comparisons in the worst case.