[#BloombergLP-bdlcc-Deque-tryPopBack-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::tryPopBack
:relfileprefix: ../../../
:mrdocs:

Remove up to `maxNumItems` from the back without blocking&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
tryPopBack(xref:BloombergLP/bdlcc/Deque/size_type.adoc[size&lowbar;type] maxNumItems);
----

== Description

Remove up to the specified `maxNumItems` from the back of this container&period; Note that to transfer the entire contents of a `Deque` `d` to a vector `v`, use `d&period;removeAll(&amp;v)&semi;`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *maxNumItems*
| maximum number of items to remove
|===


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