For example,
class A {}; // This is blank
class B {int i}; // This is not.
How to know if a class or a class's object is blank or not?
For example,
class A {}; // This is blank
class B {int i}; // This is not.
How to know if a class or a class's object is blank or not?
You need what is called "reflection". reflection is the ability to inspect a type for its methods, member etc. The "usual" kind of reflection is not possible in C++, however there are ways to do it.
I suggest you read this answer here:
How can I add reflection to a C++ application?
or this one:
Is there an easy way to tell if a class/struct has no data members?