tryPushBack overloads
Synopses
Declared in <bdlcc_deque.h>
Try to move‐append item to the back without blocking.
int
tryPushBack(bslmf::MovableRef<TYPE> item);
Try to append item to the back without blocking.
int
tryPushBack(TYPE const& item);
Push items from the specified range to the back while space remains.
template<class INPUT_ITER>
Deque<TYPE>::size_type
tryPushBack(
INPUT_ITER begin,
INPUT_ITER end);
Return Value
-
0 if the container was updated, and a non‐zero value otherwise
-
the number of items pushed
Parameters
Name |
Description |
item |
value to move‐append |
begin |
start of the input range |
end |
end of the input range |
Created with MrDocs