Standard C++ Library Class Reference
Output :
4 2 3 1
4 3 2 1
3 2 1 4
3 1 2 4
4 3 1 2
4 3 2 1
1 2 3 4
1 2 3 4
Warning
If your compiler does not support default template parameters, you need to always supply the
Allocator template argument. For instance, you will need to write :
vector<int, allocator>
instead of :
vector<int>
See Also
make_heap, pop_heap, sort_heap