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

Synopsis

Declared in <bdlcc_deque.h>

int
tryPopBack(TYPE* item);

Description

If this container is non‐empty, remove the last 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

Name

Description

item

address at which to load the removed value

Created with MrDocs