Create a container from [begin .. end)] with highWaterMark.
Declared in <bdlcc_deque.h>
template<class INPUT_ITER>
Deque(
INPUT_ITER begin,
INPUT_ITER end,
std::size_t highWaterMark,
bslma::Allocator* basicAllocator = 0);
Create a container of objects of (template parameter) TYPE containing the sequence of TYPE values in the specified range [begin .. end)] having the specified highWaterMark. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless highWaterMark > 0. Note that if the number of elements in the range [begin, end)] exceeds highWaterMark, the effect will be the same as if the extra elements were added by forced pushes. Also note that the items in the range are treated as const objects, copied without being modified. The realtime clock type is used for timed operations.
| Name | Description |
|---|---|
| begin | beginning of the input range |
| end | end of the input range |
| highWaterMark | maximum number of items before pushes block |
| basicAllocator | allocator used to supply memory |