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

`tryPopFront` overloads

== Synopses

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

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


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

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/Deque/tryPopFront-06.adoc[tryPopFront](TYPE* item);
----

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

Remove up to `maxNumItems` from the front into `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlcc/Deque/tryPopFront-08.adoc[tryPopFront](
    xref:BloombergLP/bdlcc/Deque/size_type.adoc[size&lowbar;type] maxNumItems,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;TYPE&gt;]* buffer);
----

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

Remove up to `maxNumItems` from the front into `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlcc/Deque/tryPopFront-02.adoc[tryPopFront](
    xref:BloombergLP/bdlcc/Deque/size_type.adoc[size&lowbar;type] maxNumItems,
    std::pmr::vector&lt;TYPE&gt;* buffer);
----

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

Remove up to `maxNumItems` from the front into `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlcc/Deque/tryPopFront-00.adoc[tryPopFront](
    xref:BloombergLP/bdlcc/Deque/size_type.adoc[size&lowbar;type] maxNumItems,
    std::vector&lt;TYPE&gt;* buffer);
----

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *maxNumItems*
| maximum number of items to remove
| *item*
| address at which to load the removed value
| *buffer*
| vector that receives the removed items
|===


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