[#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 `<bdlcc_deque.h>` Remove up to `maxNumItems` from the front without blocking. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Deque/tryPopFront-0a.adoc[tryPopFront](xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems); ---- [.small]#xref:BloombergLP/bdlcc/Deque/tryPopFront-0a.adoc[_» more..._]# Try to remove the first item into `*item` without blocking. [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..._]# Remove up to `maxNumItems` from the front into `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Deque/tryPopFront-08.adoc[tryPopFront]( xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems, xref:bsl/vector-00d.adoc[bsl::vector<TYPE>]* buffer); ---- [.small]#xref:BloombergLP/bdlcc/Deque/tryPopFront-08.adoc[_» more..._]# Remove up to `maxNumItems` from the front into `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Deque/tryPopFront-02.adoc[tryPopFront]( xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems, std::pmr::vector<TYPE>* buffer); ---- [.small]#xref:BloombergLP/bdlcc/Deque/tryPopFront-02.adoc[_» more..._]# Remove up to `maxNumItems` from the front into `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Deque/tryPopFront-00.adoc[tryPopFront]( xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems, std::vector<TYPE>* buffer); ---- [.small]#xref:BloombergLP/bdlcc/Deque/tryPopFront-00.adoc[_» more..._]# == Return Value 0 on success, and a non‐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]#