BloombergLP::bdlcc::Deque::tryPopBack

Remove up to maxNumItems from the back without blocking.

Synopsis

Declared in <bdlcc_deque.h>

void
tryPopBack(size_type maxNumItems);

Description

Remove up to the specified maxNumItems from the back of this container. Note that to transfer the entire contents of a Deque d to a vector v, use d.removeAll(&v);.

Parameters

NameDescription
maxNumItemsmaximum number of items to remove