Destroy each element in the specified deque range.
Declared in <bslalg_dequeprimitives.h>
template<class ALLOCATOR>
static
void
destruct(
Iterator begin,
Iterator end,
ALLOCATOR allocator);
Call the destructor on each of the elements of a deque of parameterized VALUE_TYPE in the specified range [begin .. end)]. The behavior is undefined unless begin <= end. Note that this does not deallocate any memory (except memory deallocated by the element destructor calls).
| Name | Description |
|---|---|
| begin | beginning of the range of elements to destroy |
| end | end of the range of elements to destroy (one past the last) |
| allocator | allocator used to destroy elements |