diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-22 16:48:08 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-22 16:50:31 +0300 |
commit | 6223385043ddc93beaa8f092dfd31a2208b8e961 (patch) | |
tree | a4e208569308d293dc02101e09d3f84bff65af93 /source/blender/functions/FN_multi_function_params.hh | |
parent | 7117ed96917a2b2dedf663a97f10bde5d285470f (diff) |
Functions: Various improvements to the spans and generic data structures
Most of this code is covered by unit tests.
Diffstat (limited to 'source/blender/functions/FN_multi_function_params.hh')
-rw-r--r-- | source/blender/functions/FN_multi_function_params.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_params.hh b/source/blender/functions/FN_multi_function_params.hh index 2388e3b15e5..6a0eb698250 100644 --- a/source/blender/functions/FN_multi_function_params.hh +++ b/source/blender/functions/FN_multi_function_params.hh @@ -199,6 +199,10 @@ class MFParams { return m_builder->m_mutable_spans[data_index]; } + template<typename T> GVectorArrayRef<T> vector_mutable(uint param_index, StringRef name = "") + { + return this->vector_mutable(param_index, name).typed<T>(); + } GVectorArray &vector_mutable(uint param_index, StringRef name = "") { this->assert_correct_param(param_index, name, MFParamType::VectorMutable); |