Attempt to remove the front element without blocking.
Synopsis
Declared in <bdlcc_fixedqueue.h>
int
tryPopFront(TYPE* value);
Description
Attempt to remove the element from the front of this queue without blocking, and, if successful, load the specified value with the removed element. Return 0 on success, and a non‐zero value if queue was empty. On failure, value is not changed.
Return Value
0 on success, and a non‐zero value if the queue was empty
Parameters
Name |
Description |
value |
receives the removed element |
Created with MrDocs