diff --git a/source/blender/blenlib/BLI_cpp_type.hh b/source/blender/blenlib/BLI_cpp_type.hh index 2f61583589b..c533fd05eea 100644 --- a/source/blender/blenlib/BLI_cpp_type.hh +++ b/source/blender/blenlib/BLI_cpp_type.hh @@ -705,6 +705,11 @@ class CPPType : NonCopyable, NonMovable { return this == &CPPType::get>(); } + template bool is_any() const + { + return (this->is() || ...); + } + /** * Convert a #CPPType that is only known at run-time, to a static type that is known at * compile-time. This allows the compiler to optimize a function for specific types, while all