stl中的堆操作

pop_heap:

template <class RandomAccessIterator>
void pop_heap(RandomAccessIterator first,
RandomAccessIterator last);
template <class RandomAccessIterator, class Compare>
void pop_heap(RandomAccessIterator first,
RandomAccessIterator last,
Compare comp);

push_heap:

template <class RandomAccessIterator>
void push_heap(RandomAccessIterator first,
RandomAccessIterator last);
template <class RandomAccessIterator, class Compare>
void push_heap(RandomAccessIterator first,
RandomAccessIterator last,
Compare comp);

make_heap:

template <class RandomAccessIterator>
void make_heap(RandomAccessIterator first,
RandomAccessIterator last);
template <class RandomAccessIterator, class Compare>
void make_heap(RandomAccessIterator first,
RandomAccessIterator last,
Compare comp);

sort_heap:

template <class RandomAccessIterator>
void sort_heap(RandomAccessIterator first,
RandomAccessIterator last);
template <class RandomAccessIterator, class Compare>
void sort_heap(RandomAccessIterator first,
RandomAccessIterator last,
Compare comp);


你可能感兴趣的:(stl中的堆操作)