diff --git a/src/common/mp/function_info.h b/src/common/mp/function_info.h index 99aebadc..8f8bae14 100644 --- a/src/common/mp/function_info.h +++ b/src/common/mp/function_info.h @@ -58,6 +58,14 @@ struct FunctionInfo : public FunctionInfo using class_type = C; }; +/** + * Helper template for retrieving the number of function parameters. + * + * @tparam Function An arbitrary function type. + */ +template +constexpr size_t parameter_count_v = FunctionInfo::args_count; + /** * Helper template for retrieving the type of a function parameter. *