BloombergLP::bdlcc::Deque::tryPopFront

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

Synopsis

Declared in <bdlcc_deque.h>

int
tryPopFront(TYPE* item);

Description

If this container is non-empty, remove the first item, load that item into the specified *item, and return 0 indicating success. If this container is empty, return a non-zero value with no effect on *item or the state of this container.

Return Value

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

Parameters

NameDescription
itemaddress at which to load the removed value