ΒΆint clang_Cursor_getNumTemplateArguments(
CXCursor C)
int clang_Cursor_getNumTemplateArguments(
CXCursor C)
Description
Returns the number of template args of a function decl representing a template specialization. If the argument cursor cannot be converted into a template function declaration, -1 is returned. For example, for the following declaration and specialization: template <typename T, int kInt, bool kBool> void foo() { ... } template < > void foo <float , -7, true>(); The value 3 would be returned from this call.
Declared at: clang/include/clang-c/Index.h:3609
Parameters
- CXCursor C