Vec.set

Sets all elements of the vector to those in the specified array.

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

Parameters

elements T[size]

The elements to set.

Return Value

Type: Vec!(T, size)

A reference to this vector.

Meta