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

Try to remove the last item into `&ast;item` without blocking&period;

== Synopsis

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

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

== Description

If this container is non&hyphen;empty, remove the last item, load that item into the specified `&ast;item`, and return 0 indicating success&period; If this container is empty, return a non&hyphen;zero value with no effect on `item` or the state of this container&period;

== Return Value

0 on success, and a non&hyphen;zero value if the container is empty

== Parameters

[cols="1,4"]
|===
| Name| Description
| *item*
| address at which to load the removed value
|===


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