Skip to content

Commit a9cf994

Browse files
add IsLValueReferenceType & IsRValueReferenceType
1 parent 8c75b36 commit a9cf994

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,14 @@ Cppyy::TCppType_t Cppyy::GetReferencedType(TCppType_t type, bool rvalue) {
532532
return Cpp::GetReferencedType(type, rvalue);
533533
}
534534

535+
bool Cppyy::IsRValueReferenceType(TCppType_t type) {
536+
return Cpp::IsRValueReferenceType(type);
537+
}
538+
539+
bool Cppyy::IsLValueReferenceType(TCppType_t type) {
540+
return Cpp::IsLValueReferenceType(type);
541+
}
542+
535543
bool Cppyy::IsClassType(TCppType_t type) {
536544
return Cpp::IsRecordType(type);
537545
}

clingwrapper/src/cpp_cppyy.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ namespace Cppyy {
9090
RPY_EXPORTED
9191
std::string ResolveEnum(TCppScope_t enum_scope);
9292
RPY_EXPORTED
93+
bool IsLValueReferenceType(TCppType_t type);
94+
RPY_EXPORTED
95+
bool IsRValueReferenceType(TCppType_t type);
96+
RPY_EXPORTED
9397
bool IsClassType(TCppType_t type);
9498
RPY_EXPORTED
9599
bool IsPointerType(TCppType_t type);

0 commit comments

Comments
 (0)