Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/priority queue"

From cppreference.com
< cpp‎ | container
m (Text replace - "{{dcl list begin}} {{dcl list h1 | Member functions}}" to "===Member functions=== {{dcl list begin}}")
m (Text replace - "{{tdcl list begin}} {{tdcl list h1 | Member types}}" to "===Member types=== {{tdcl list begin}}")
Line 13: Line 13:
 
{{todo}}
 
{{todo}}
  
 +
===Member types===
 
{{tdcl list begin}}
 
{{tdcl list begin}}
{{tdcl list h1 | Member types}}
 
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list template | cpp/container/tdcl list container_type | priority_queue}}
 
{{tdcl list template | cpp/container/tdcl list container_type | priority_queue}}

Revision as of 16:07, 18 August 2011

Template:cpp/container/priority queue/sidebar

Defined in header <queue>
template<

    class T,
    class Container = std::deque<T>,
    class Compare = std::less<typename Container::value_type>

> class priority_queue;

C++ Priority Queues are like queues, but the elements inside the queue are ordered by some predicate.

Contents

Member types

Template:tdcl list begin Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list end

Member functions

Template:cpp/container/dcl list constructorTemplate:cpp/container/dcl list destructorTemplate:cpp/container/dcl list operator=Template:cpp/container/dcl list topTemplate:cpp/container/dcl list emptyTemplate:cpp/container/dcl list sizeTemplate:cpp/container/dcl list pushTemplate:cpp/container/dcl list emplaceTemplate:cpp/container/dcl list popTemplate:cpp/container/dcl list swapTemplate:cpp/container/dcl list c
Element access
Capacity
Modifiers

Member objects