BloombergLP::bslalg::ArrayPrimitives::copyConstruct

copyConstruct overloads

Synopses

Declared in <bslalg_arrayprimitives.h>

Same as the preceding copyConstruct overload, for pointer ranges.

template<
    class ALLOCATOR,
    class SOURCE_TYPE>
static
void
copyConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    SOURCE_TYPE* fromBegin,
    SOURCE_TYPE* fromEnd,
    ALLOCATOR allocator);
» more...

Same as the preceding overload, taking pointer iterators.

template<
    class TARGET_TYPE,
    class SOURCE_TYPE>
static
void
copyConstruct(
    TARGET_TYPE* toBegin,
    SOURCE_TYPE* fromBegin,
    SOURCE_TYPE* fromEnd,
    bslma::Allocator* allocator);
» more...

Copy-construct elements from a range into an uninitialized array.

template<
    class ALLOCATOR,
    class FWD_ITER,
    class SENTINEL>
static
void
copyConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    FWD_ITER fromBegin,
    SENTINEL fromEnd,
    ALLOCATOR allocator);
» more...

Copy-construct elements from a range into an uninitialized array.

template<
    class TARGET_TYPE,
    class FWD_ITER,
    class SENTINEL>
static
void
copyConstruct(
    TARGET_TYPE* toBegin,
    FWD_ITER fromBegin,
    SENTINEL fromEnd,
    bslma::Allocator* allocator);
» more...

Parameters

NameDescription
toBeginbeginning of the uninitialized destination range
fromBeginbeginning of the source range
fromEndend of the source range (one past the last element)
allocatorallocator used to supply memory if required