template <class T, class Container = vector<T>, class Compare = less<typename Container::value_type> > class priority_queue;
bool
.comp(a,b)
, where comp is an object of this type and a and b are elements in the container, shall return true
if a is considered to go before b in the strict weak ordering the function defines.less<T>
, which returns the same as applying the less-than operator (a<b
).member type | definition | notes |
---|---|---|
value_type | The first template parameter (T) | Type of the elements |
container_type | The second template parameter (Container) | Type of the underlying container |
size_type | an unsigned integral type | usually the same as size_t |
member type | definition | notes |
---|---|---|
value_type | The first template parameter (T) | Type of the elements |
container_type | The second template parameter (Container) | Type of the underlying container |
reference | container_type::reference | usually, value_type& |
const_reference | container_type::const_reference | usually, const value_type& |
size_type | an unsigned integral type | usually, the same as size_t |