BloombergLP::bdlcc::FixedQueue::tryPushBack

Attempt to append the specified move-insertable value without blocking.

Synopsis

Declared in <bdlcc_fixedqueue.h>

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

Description

Attempt to append the specified move-insertable value to the back of this queue without blocking. value is left in a valid but unspecified state. Return 0 on success, and a non-zero value if the queue is full or disabled.

Return Value

0 on success, non-zero if full or disabled

Parameters

NameDescription
valuemove-insertable value to append