4aad73cc创建于 2025年7月9日历史提交
%module xxx

template<class T> T blah(T x) { };

%template(iblah) blah<int>;
%template(iiblah) blah<int>;

// empty template instantiations for template functions warn (unlike for template classes)
%template() blah<double>;
%template() blah<double>;
%template() blah<double>;

%template(sblah) blah<short>;
%template(sblah) blah<short>;

%template() blah<const char *>;
%template() blah<const char *>;
%template(sblah) blah<const char *>;