List.addAll

Adds the elements contained in the DList passed to the function the list to the specified index. The first element of the DList 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)
  3. void addAll(List!T otherList)
  4. void addAll(size_t index, List!T otherList)
    interface List(T)
    void
    addAll
    @nogc
    ()

Parameters

index
Type: size_t

index in which to place the elements

otherList
Type: List!T

the DList that contains the elements to add to the list

Meta