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

Insert the value of the specified `item` with the specified `itemPriority` into this multipriority queue before any queued items having a less urgent priority (higher value) than `itemPriority`, and after any items having the same or more urgent priority (lower value) than `itemPriority`&period; `item` is left in a valid but unspecified state&period; If the multipriority queue is enabled, the push succeeds and `0` is returned, otherwise the push fails, the queue remains unchanged, and a nonzero value is returned&period; The behavior is undefined unless `0 &lt;&equals; itemPriority &lt; numPriorities()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
pushBack(
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;TYPE&gt;] item,
    int itemPriority);
----


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