BloombergLP::bslalg::ArrayPrimitives::insert

Same as the preceding overload, taking pointer iterators.

Synopsis

Declared in <bslalg_arrayprimitives.h>

template<
    class TARGET_TYPE,
    class SOURCE_TYPE>
static
void
insert(
    TARGET_TYPE* toBegin,
    TARGET_TYPE* toEnd,
    SOURCE_TYPE* fromBegin,
    SOURCE_TYPE* fromEnd,
    size_type numElements,
    bslma::Allocator* allocator);

Parameters

NameDescription
toBegininsertion position within the destination array
toEndend of the populated destination range
fromBeginbeginning of the source range to insert
fromEndend of the source range to insert
numElementsnumber of elements to insert from the source range
allocatorallocator used to supply memory if required