title: What is the efficient way of implementing a queue?
body: <p>What is the efficient way of implementing a queue, inorder to learn how it is implemented?</p>
  
  <p>EDIT:
  I looked into stl::queue code inorder to learn abt how it is implemented, but the template code making it difficult to understand. After all there is better efficient way is used than having a linked list.</p>