tryPushFront overloads
Synopses
Declared in <bdlcc_deque.h>
Try to move‐append item to the front without blocking.
int
tryPushFront(bslmf::MovableRef<TYPE> item);
Try to append item to the front without blocking.
int
tryPushFront(TYPE const& item);
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);
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