BloombergLP::bslalg::ArrayPrimitives::insert

Same as the preceding insert overload, taking pointer iterators.

Synopsis

Declared in <bslalg_arrayprimitives.h>

template<
    class ALLOCATOR,
    class SOURCE_TYPE>
static
void
insert(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    bsl::allocator_traits<ALLOCATOR>::pointer toEnd,
    SOURCE_TYPE* fromBegin,
    SOURCE_TYPE* fromEnd,
    size_type numElements,
    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