Method ADT.Priority_queue()->push()
- Method
push
push(elemint|floatpri,ValueTypeval)- Description
Push an element
valinto the priority queue and assign a priority valueprito it. The priority queue will automatically sort itself so that the element with the smallest priority will be at the top.