CopyTo()

System::MemoryExtensions::CopyTo(const ArrayPtr<T>&, Span<T>&) function

Copies elements from an array to a span.

template<typename T> void System::MemoryExtensions::CopyTo(const ArrayPtr<T> &source, Span<T> &destination)

Template parameters

ParameterDescription
TThe type of elements in the array and span

Arguments

ParameterTypeDescription
sourceconst ArrayPtr<T>&The source array
destinationSpan<T>&The destination span

See Also