BloombergLP::bdlcc::Deque::tryPushBack

Try to move-append item to the back without blocking.

Synopsis

Declared in <bdlcc_deque.h>

int
tryPushBack(bslmf::MovableRef<TYPE> item);

Description

If the container is not full (see {High-Water Mark Feature}), append the specified move-insertable item to the back of the container, otherwise leave the container unchanged. If the container is modified, item is left in a valid but unspecified state, otherwise item is 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

NameDescription
itemvalue to move-append