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

Synopsis

Declared in <bdlcc_deque.h>

template<class INPUT_ITER>
Deque<TYPE>::size_type
tryPushBack(
    INPUT_ITER begin,
    INPUT_ITER end);

Description

Push as many of the items in the specified range [begin .. end)] as there is space available for (see {`High‐Water Mark` Feature}) to the back of the container, stopping if the container high‐water mark is reached. Note that the items in the range are treated as const objects, copied without being modified.

Return Value

the number of items pushed

Parameters

Name

Description

begin

start of the input range

end

end of the input range

Created with MrDocs