Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/functions/intern/generic_array_ref.cc')
-rw-r--r--source/blender/functions/intern/generic_array_ref.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/functions/intern/generic_array_ref.cc b/source/blender/functions/intern/generic_array_ref.cc
new file mode 100644
index 00000000000..7004ee864da
--- /dev/null
+++ b/source/blender/functions/intern/generic_array_ref.cc
@@ -0,0 +1,14 @@
+#include "FN_generic_array_ref.h"
+
+namespace FN {
+
+void GenericMutableArrayRef::RelocateUninitialized(GenericMutableArrayRef from,
+ GenericMutableArrayRef to)
+{
+ BLI::assert_same_size(from, to);
+ BLI_assert(from.type() == to.type());
+
+ from.m_type->relocate_to_uninitialized_n(from.buffer(), to.buffer(), from.size());
+}
+
+} // namespace FN