Try to append item to the front without blocking.

Synopsis

Declared in <bdlcc_deque.h>

int
tryPushFront(TYPE const& item);

Description

If the container is not full (see {`High‐Water Mark` Feature}), append the specified item to the front of the container, otherwise leave the container unchanged. Return 0 if the container was updated and a non‐zero value otherwise.

Return Value

0 if the container was updated, and a non‐zero value otherwise

Parameters

Name

Description

item

value to append

Created with MrDocs