[#BloombergLP-bdlcc-Deque-tryPopFront-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::tryPopFront :relfileprefix: ../../../ :mrdocs: Remove up to the specified `maxNumItems` from the front of this container. Optionally specify a `buffer` into which the items removed from the container are appended. If `buffer` is non‐null, the removed items are appended to it as if by repeated application of `buffer‐>push_back(popFront())` while the const is not empty and `maxNumItems` have not yet been removed. Note that `*buffer` is not cleared ‐‐ the popped items are appended after any pre‐existing contents. == Synopsis Declared in `<bdlcc_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tryPopFront(xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems); ---- == Description Also note that to transfer the entire contents of a `Deque` `d` to a vector `v`, use `d.removeAll(&v);`. [.small]#Created with https://www.mrdocs.com[MrDocs]#