BloombergLP::bslalg::ArrayDestructionPrimitives::destroy

Same as the preceding destroy overload, for non-bitwise-copyable types.

Synopsis

Declared in <bslalg_arraydestructionprimitives.h>

template<
    class TARGET_TYPE,
    class ALLOCATOR>
static
void
destroy(
    TARGET_TYPE* begin,
    TARGET_TYPE* end,
    ALLOCATOR allocator,
    bsl::false_type traits);

Parameters

NameDescription
beginbeginning of the range of elements to destroy
endend of the range of elements to destroy (one past the last)
allocatorallocator used to destroy elements
traitsunused trait tag for overload resolution