Vec.set

Sets all the elements of the vector to those in the specified variadic array. Note that if the given list of elements is shorter than the vector's size, only the first elements.length elements will be set, and if the list of elements is larger than the vector's size, any extra elements will be ignored.

  1. Vec!(T, size) set(T[size] elements)
  2. Vec!(T, size) set(T[] elements)
    struct Vec(T, size_t size)
    ref @nogc
    Vec!(T, size)
    set
    if (
    isNumeric!T &&
    size > 0
    )

Return Value

Type: Vec!(T, size)

A reference to this vector.

Meta