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" {
109
109
RPY_EXPORTED
110
110
int cppyy_is_namespace (cppyy_scope_t scope );
111
111
RPY_EXPORTED
112
+ int cppyy_is_static_template (cppyy_scope_t scope , const char * name );
113
+ RPY_EXPORTED
112
114
int cppyy_is_template (const char * template_name );
113
115
RPY_EXPORTED
114
116
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)
1599
1599
return Cpp::IsTemplatedFunction (method);
1600
1600
}
1601
1601
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
+
1602
1609
Cppyy::TCppMethod_t Cppyy::GetMethodTemplate (
1603
1610
TCppScope_t scope, const std::string& name, const std::string& proto)
1604
1611
{
Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ namespace Cppyy {
318
318
RPY_EXPORTED
319
319
bool IsTemplatedMethod (TCppMethod_t method);
320
320
RPY_EXPORTED
321
+ bool IsStaticTemplate (TCppScope_t scope, const std::string& name);
322
+ RPY_EXPORTED
321
323
TCppMethod_t GetMethodTemplate (
322
324
TCppScope_t scope, const std::string& name, const std::string& proto);
323
325
RPY_EXPORTED
You can’t perform that action at this time.
0 commit comments