Template:cpp/algorithm/ranges/notes heap

A max heap is a range of elements, arranged with respect to comparator and projection , that has the following properties:
 * With, , and , for all , the expression evaluates to.
 * A new element can be added using ranges, in time.
 * The first element can be removed using ranges, in time.