Or login with:
#include <algorithm> template < class RandomAccessIterator > bool is_heap( RandomAccessIterator first, RandomAccessIterator last ); template < class RandomAccessIterator, class BinaryPredicate > bool is_heap( RandomAccessIterator first, RandomAccessIterator last, BinaryPredicate comp );
| Parameter | Description |
|---|---|
| first | A random access iterator that indicates the start of a range to check for a heap |
| last | A random access iterator that indicates the end of a range |
| comp | A condition to test to order elements. A binary predicate takes a single argument and returns true or false |
[first, last) form a heap.
The first version compares objects using operator< and the second compares objects using a function object comp.You must login to leave a messge