Monday, 15 June 2015

c++ - how to see if an object is blank or not? -



c++ - how to see if an object is blank or not? -

this question has reply here:

is there easy way tell if class/struct has no info members? 4 answers

for example,

class {}; // blank class b {int i}; // not.

how know if class or class's object blank or not?

you need called "reflection". reflection ability inspect type methods, fellow member etc. "usual" kind of reflection not possible in c++, there ways it.

i suggest read reply here:

how can add together reflection c++ application?

or one:

is there easy way tell if class/struct has no info members?

c++ typeinfo

No comments:

Post a Comment