BloombergLP::bdlcc::Deque::tryPushFront

tryPushFront overloads

Synopses

Declared in <bdlcc_deque.h>

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

int
tryPushFront(bslmf::MovableRef<TYPE> item);
» more...

Try to append item to the front without blocking.

int
tryPushFront(TYPE const& item);
» more...

Push items from the specified range to the front while space remains.

template<class INPUT_ITER>
Deque<TYPE>::size_type
tryPushFront(
    INPUT_ITER begin,
    INPUT_ITER end);
» more...

Return Value

  • 0 if the container was updated, and a non-zero value otherwise
  • the number of items pushed

Parameters

NameDescription
itemvalue to move-append
beginstart of the input range
endend of the input range