Add Array ctor from Span
This commit is contained in:
@@ -76,6 +76,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes <see cref="Array"/> by copying span of elements.
|
||||
/// </summary>
|
||||
/// <param name="span">The initial values defined in the array.</param>
|
||||
FORCE_INLINE Array(class Span<T> span)
|
||||
: Array(span.Get(), span.Length())
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes <see cref="Array"/> by copying listed elements.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user