VectorImpl.this

Creates a new vector from a slice.

  1. this(T[] rhs)
    struct VectorImpl(T, bool ownsMemory = true)
    @nogc @system
    this
    (
    T[] rhs
    )
  2. this(inout(SelfType) rhs)
  3. this(size_t reserved)

Parameters

rhs T[]

slice to copy or move data from.

Notes: Elements will either be copied or moved out of the source slice. Pointers will only be weakly referenced. If said pointers were allocated with the GC, they may be collected!

Meta