cppreference.com -> C++ Queues -> Details

C++ Queues


back

Syntax:

   TYPE &back();

The function back() returns a reference to the last element in the current queue.


empty

Syntax:

  bool empty();

The empty() function returns true if the current priority queue is empty, and false otherwise.


front

Syntax:

   TYPE &front();

The function front() returns a reference to the first element in the current queue.


pop

Syntax:

  void pop();

The function pop() discards the first element in the current priority queue.


push

Syntax:

  void push( const TYPE &val );

The function push() adds an element to the current priority queue.


size

Syntax:

  size_type size();

The size() function returns the number of things in the current priority queue.