BloombergLP::bdlcc::Deque::tryPopFront

tryPopFront overloads

Synopses

Declared in <bdlcc_deque.h>

Remove up to maxNumItems from the front without blocking.

void
tryPopFront(size_type maxNumItems);
» more...

Try to remove the first item into *item without blocking.

int
tryPopFront(TYPE* item);
» more...

Remove up to maxNumItems from the front into buffer.

void
tryPopFront(
    size_type maxNumItems,
    bsl::vector<TYPE>* buffer);
» more...

Remove up to maxNumItems from the front into buffer.

void
tryPopFront(
    size_type maxNumItems,
    std::pmr::vector<TYPE>* buffer);
» more...

Remove up to maxNumItems from the front into buffer.

void
tryPopFront(
    size_type maxNumItems,
    std::vector<TYPE>* buffer);
» more...

Return Value

0 on success, and a non-zero value if the container is empty

Parameters

NameDescription
maxNumItemsmaximum number of items to remove
itemaddress at which to load the removed value
buffervector that receives the removed items