Destroy each element in the specified deque range (nil traits).
Synopsis
Declared in <bslalg_dequeprimitives.h>
template<class ALLOCATOR>
static
void
destruct(
Iterator begin,
Iterator end,
ALLOCATOR allocator,
bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_NIL_TRAITS> traits);
Description
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). Note that the last argument is for removing overload ambiguities and is not used.
Parameters
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 |
traits |
unused trait tag for overload resolution |
Created with MrDocs