[#BloombergLP-bdlcc-MultipriorityQueue-popFront]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/MultipriorityQueue.adoc[MultipriorityQueue]::popFront
:relfileprefix: ../../../
:mrdocs:

Remove the least&hyphen;recently added item having the most urgent priority (lowest value) from this multi&hyphen;priority queue and load its value into the specified `item`&period; If this queue is empty, this method blocks the calling thread until an item becomes available&period; If the optionally specified `itemPriority` is non&hyphen;null, load the priority of the popped item into `itemPriority`&period; The behavior is undefined unless `item` is non&hyphen;null&period; Note this is unaffected by the enabled &sol; disabled state of the queue&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;multipriorityqueue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
popFront(
    TYPE* item,
    int* itemPriority = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
