I have the following c++ template class:
template <typename T>
class Data {
public:
T t;
};
class A {
};
int main() {
Data<A> data;
return 0;
}
How can I read member t of Data class ?
Maybe I need to read instantiated class Data (where A another class)
I have the following python code:
if cursor.kind == CursorKind.CLASS_TEMPLATE:
for child in cursor.get_children():
print(f'child is {repr(child)}')
But in children I observe only template parameter T and not t member ... !?
Is there some way to read member of template class with all types ?