diff options
Diffstat (limited to 'source/blender/functions')
-rw-r--r-- | source/blender/functions/FN_cpp_type.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/functions/FN_cpp_type.hh b/source/blender/functions/FN_cpp_type.hh index cd1597a742c..14eab2704e9 100644 --- a/source/blender/functions/FN_cpp_type.hh +++ b/source/blender/functions/FN_cpp_type.hh @@ -260,6 +260,11 @@ class CPPType : NonCopyable, NonMovable { return !(&a == &b); } + /** + * Get the `CPPType` that corresponds to a specific static type. + * This only works for types that actually implement the template specialization using + * `MAKE_CPP_TYPE`. + */ template<typename T> static const CPPType &get(); /** |