Move‐construct elements from a range into an uninitialized array.

Synopses

Declared in <bslalg_arrayprimitives.h>

Move‐construct elements from a range into an uninitialized array.

template<class ALLOCATOR>
static
void
moveConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    bsl::allocator_traits<ALLOCATOR>::pointer fromBegin,
    bsl::allocator_traits<ALLOCATOR>::pointer fromEnd,
    ALLOCATOR allocator);

Move‐construct elements from a range into an uninitialized array.

template<class TARGET_TYPE>
static
void
moveConstruct(
    TARGET_TYPE* toBegin,
    TARGET_TYPE* fromBegin,
    TARGET_TYPE* fromEnd,
    bslma::Allocator* allocator);

Parameters

Name

Description

toBegin

beginning of the uninitialized destination range

fromBegin

beginning of the source range

fromEnd

end of the source range (one past the last element)

allocator

allocator used to supply memory if required

Created with MrDocs