Vitis HLS supports the use of templates in C++ for synthesis. Vitis HLS does not support templates for the top-level function. Refer to Vitis-HLS-Introductory-Examples/Modeling/using_C++_templates on GitHub for an example of these concepts.
Important: The top-level function
cannot be a template.