[#BloombergLP-bdlcc-SingleProducerQueueImpl-tryPopFront]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerQueueImpl.adoc[SingleProducerQueueImpl]::tryPopFront
:relfileprefix: ../../../
:mrdocs:

Attempt to remove the front element of this queue without blocking&period;

== Synopsis

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

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

== Description

Attempt to remove the element from the front of this queue without blocking, and, if successful, load the specified `value` with the removed element&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Specifically, return `e&lowbar;DISABLED` if `isPopFrontDisabled()`, and `e&lowbar;EMPTY` if `!isPopFrontDisabled()` and the queue was empty&period; On failure, `value` is not changed&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| receives the removed element
|===


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