title: List to priority queue
body: <p>I have a college programming project in C++ divided into two parts. I beggining the second part where it's supposed to use <code>priority_queues</code>, <code>hash tables</code> and <code>BST</code>'s.</p>
  
  <p>I'm having trouble (at least) with priority queues since it's obligating myself to redone a lot of code already implemented in the first part.</p>
  
  <p>The project it's about implementing a <strong>simple airport management system</strong> and, therefore, I have classes like Airport (main class), Airplane, Terminal and Flight. My airport had a <code>list</code> of terminals but now the project specification points out that I must <strong>keep the terminals in a</strong> <code>priority_queue</code> where the top contains the terminal less occupied, i.e has less flights.</p>
  
  <p>For each class, I have CRUD functions but now how am I supposed, for example, edit a terminal and add a flight to it? With a list, I just had to iterate to a specific position but now I only have access to object in the top of the queue. The solution I thought about was to copy the priority queue terminals to a temporary list but, honestly, I don't like this approach.</p>
  
  <p>What should I do?</p>
  
  <p>Thanks in advance.</p>