From a475aa7d4f972cb556a2902c6a062b56b92190d8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 7 Sep 2026 12:26:23 +0200 Subject: [PATCH] Add `Array` ctor from `Span` --- Source/Engine/Core/Collections/Array.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h index a852d63d6..7e164ad70 100644 --- a/Source/Engine/Core/Collections/Array.h +++ b/Source/Engine/Core/Collections/Array.h @@ -76,6 +76,15 @@ public: } } + /// + /// Initializes by copying span of elements. + /// + /// The initial values defined in the array. + FORCE_INLINE Array(class Span span) + : Array(span.Get(), span.Length()) + { + } + /// /// Initializes by copying listed elements. ///