List.addAll

Adds the elements contained in the array passed to the function the list to the specified index. The first element of the array will be inserted at the specified index, then the other indexes of the other elements will be incremental

This function could cause a memory reallocation if the capacity of the list is not sufficient to contain the items or index <= length of the list.

  1. void addAll(T[] otherArray)
  2. void addAll(size_t index, T[] otherArray)
    interface List(T)
    void
    addAll
    @nogc
    (
    size_t index
    ,
    )
  3. void addAll(List!T otherList)
  4. void addAll(size_t index, List!T otherList)

Parameters

index
Type: size_t

index in which to place the elements

otherArray
Type: T[]

the array that contains the elements to add to the list

Meta