Priority-Queue Examples

Basic Use

  1. basic_priority_queue.cc Basic use of priority queues.
  2. priority_queue_split_join.cc Splitting and joining priority queues.
  3. priority_queue_erase_if.cc Conditionally erasing values from a container object.

Generics

  1. priority_queue_container_traits.cc Using container_traits to query about underlying data structure behavior.

Cross Referencing

  1. priority_queue_xref.cc Cross referencing an associative container and a priority queue.
  2. priority_queue_dijkstra.cc Cross referencing a vector and a priority queue using a very simple version of Dijkstra's shortest path algorithm.