[#BloombergLP-bdlcc-Deque-tryPopBack-0c1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::tryPopBack :relfileprefix: ../../../ :mrdocs: Remove up to `maxNumItems` from the back into `buffer`. == Synopsis Declared in `<bdlcc_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tryPopBack( xref:BloombergLP/bdlcc/Deque/size_type.adoc[size_type] maxNumItems, std::vector<TYPE>* buffer); ---- == Description Remove up to the specified `maxNumItems` from the back of this container into the specified `buffer`. The removed items are appended to `buffer` as if by repeated application of `buffer‐>push_back(popBack())` while the container is not empty and `maxNumItems` have not yet been removed. Note that the ordering of the items in `*buffer` after the call is the reverse of the ordering they had in the deque. Also note that `*buffer` is not cleared ‐‐ the popped items are appended after any pre‐existing contents. == Parameters [cols="1,4"] |=== | Name| Description | *maxNumItems* | maximum number of items to remove | *buffer* | vector that receives the removed items |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#