File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ extern "C" {
109109 RPY_EXPORTED
110110 int cppyy_is_namespace (cppyy_scope_t scope );
111111 RPY_EXPORTED
112+ int cppyy_is_static_template (cppyy_scope_t scope , const char * name );
113+ RPY_EXPORTED
112114 int cppyy_is_template (const char * template_name );
113115 RPY_EXPORTED
114116 int cppyy_is_abstract (cppyy_type_t type );
Original file line number Diff line number Diff line change @@ -1599,6 +1599,13 @@ bool Cppyy::IsTemplatedMethod(TCppMethod_t method)
15991599 return Cpp::IsTemplatedFunction (method);
16001600}
16011601
1602+ bool Cppyy::IsStaticTemplate (TCppScope_t scope, const std::string& name)
1603+ {
1604+ if (Cpp::TCppFunction_t tf = GetMethodTemplate (scope, name, " " ))
1605+ return Cpp::IsStaticMethod (tf);
1606+ return false ;
1607+ }
1608+
16021609Cppyy::TCppMethod_t Cppyy::GetMethodTemplate (
16031610 TCppScope_t scope, const std::string& name, const std::string& proto)
16041611{
Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ namespace Cppyy {
318318 RPY_EXPORTED
319319 bool IsTemplatedMethod (TCppMethod_t method);
320320 RPY_EXPORTED
321+ bool IsStaticTemplate (TCppScope_t scope, const std::string& name);
322+ RPY_EXPORTED
321323 TCppMethod_t GetMethodTemplate (
322324 TCppScope_t scope, const std::string& name, const std::string& proto);
323325 RPY_EXPORTED
You can’t perform that action at this time.
0 commit comments