BloombergLP::bslalg::ArrayDestructionPrimitives::destroy

destroy overloads

Synopses

Declared in <bslalg_arraydestructionprimitives.h>

Destroy the elements in the specified array range.

template<class TARGET_TYPE>
static
void
destroy(
    TARGET_TYPE* begin,
    TARGET_TYPE* end);
» more...

Destroy each TARGET_TYPE in [begin, end)] using the destructor.

template<class TARGET_TYPE>
static
void
destroy(
    TARGET_TYPE* begin,
    TARGET_TYPE* end,
    bsl::false_type traits);
» more...

Destroy each TARGET_TYPE in [begin, end)].

template<class TARGET_TYPE>
static
void
destroy(
    TARGET_TYPE* begin,
    TARGET_TYPE* end,
    bsl::true_type traits);
» more...

Destroy the elements in the specified array range using an allocator.

template<
    class TARGET_TYPE,
    class ALLOCATOR>
static
void
destroy(
    TARGET_TYPE* begin,
    TARGET_TYPE* end,
    ALLOCATOR allocator);
» more...

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

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

Destroy each TARGET_TYPE in [begin, end)] using an allocator.

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

Parameters

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