BinaryHeap is a range so it goes in std.range. Agree?

Simen kjaeraas simen.kjaras at gmail.com
Wed Jun 9 08:13:02 PDT 2010


  Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:

> The problem is that operating on a range as a heap is not just one  
> operation (i.e. heapify), it's a handful of them. STL took the approach  
> of providing make_heap, push_heap, pop_heap, sort_heap, and is_heap.  
> Their use is quite clunky. I think that's too unstructured an approach  
> and would like to improve on it.

I might have mixed up names here. I meant heapify not as the operation,
but as in 'turn this into a heap'.

-- 
Simen


More information about the Digitalmars-d mailing list