[#BloombergLP-bdlcc-Deque-tryPushBack-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::tryPushBack
:relfileprefix: ../../../
:mrdocs:

`tryPushBack` overloads

== Synopses

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

Try to move&hyphen;append `item` to the back without blocking&period;


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

[.small]#xref:BloombergLP/bdlcc/Deque/tryPushBack-06.adoc[_» more&period;&period;&period;_]#

Try to append `item` to the back without blocking&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/Deque/tryPushBack-02.adoc[tryPushBack](TYPE const& item);
----

[.small]#xref:BloombergLP/bdlcc/Deque/tryPushBack-02.adoc[_» more&period;&period;&period;_]#

Push items from the specified range to the back while space remains&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
xref:BloombergLP/bdlcc/Deque/size_type.adoc[Deque&lt;TYPE&gt;::size&lowbar;type]
xref:BloombergLP/bdlcc/Deque/tryPushBack-0a.adoc[tryPushBack](
    INPUT&lowbar;ITER begin,
    INPUT&lowbar;ITER end);
----

[.small]#xref:BloombergLP/bdlcc/Deque/tryPushBack-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* 0 if the container was updated, and a non&hyphen;zero value otherwise
* the number of items pushed

== Parameters

[cols="1,4"]
|===
| Name| Description
| *item*
| value to move&hyphen;append
| *begin*
| start of the input range
| *end*
| end of the input range
|===


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