destruct overloads

Synopses

Declared in <bslalg_dequeprimitives.h>

TBD: fix comment 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).

template<class ALLOCATOR>
static
void
destruct(
    Iterator begin,
    Iterator end,
    ALLOCATOR allocator);

Same as the related overload above for destruct.

template<class ALLOCATOR>
static
void
destruct(
    Iterator begin,
    Iterator end,
    ALLOCATOR allocator,
    bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_BITWISE_COPYABLE_TRAITS>);

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.

template<class ALLOCATOR>
static
void
destruct(
    Iterator begin,
    Iterator end,
    ALLOCATOR allocator,
    bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_NIL_TRAITS>);

Created with MrDocs