[#BloombergLP-bdlcc-SingleProducerSingleConsumerBoundedQueue-tryPushBack-0d5]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerSingleConsumerBoundedQueue.adoc[SingleProducerSingleConsumerBoundedQueue]::tryPushBack
:relfileprefix: ../../../
:mrdocs:

`tryPushBack` overloads

== Synopses

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

Append the specified move&hyphen;insertable `value` to the back of this queue&period; `value` is left in a valid but unspecified state&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Specifically, return `e&lowbar;SUCCESS` on success, `e&lowbar;DISABLED` if `isPushBackDisabled()`, and `e&lowbar;FULL` if `!isPushBackDisabled()` and the queue was full&period; On failure, `value` is not changed&period; The behavior is undefined unless the invoker of this method is the single producer&period;


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

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

Append the specified `value` to the back of this queue&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Specifically, return `e&lowbar;SUCCESS` on success, `e&lowbar;DISABLED` if `isPushBackDisabled()`, and `e&lowbar;FULL` if `!isPushBackDisabled()` and the queue was full&period; The behavior is undefined unless the invoker of this method is the single producer&period;


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

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


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