BloombergLP::bdlcc::Deque::tryPopFront

Remove up to maxNumItems from the front without blocking.

Synopsis

Declared in <bdlcc_deque.h>

void
tryPopFront(size_type maxNumItems);

Description

Remove up to the specified maxNumItems from the front 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