Standard C++ Library Class Reference
Warning
If your compiler does not support default template parameters, you must always provide a
Container template parameter, a Compare template parameter, and an Allocator template
parameter when declaring an instance of priority_queue. For example, you would not be able to
write,
priority_queue<int> var;
Instead, you would have to write,
priority_queue<int, vector<int>,
less<typename vector<int>::value_type, allocator> var;
See Also
Containers, queue