title: C++: test if private field exists and get access on it (reflection)
body: <p>I'm absolutely new to C++, just wrote a few lines yet.</p>
  
  <p>I have access on an singleton object and I have a public available .h-file for that object.
  I can call the methods which are described in the .h-file without a problem.</p>
  
  <p>But now my problem:</p>
  
  <p>I know, that most implementations of that object contains a special Vector-field, which is not available in the .h-file.</p>
  
  <p>Is there a way to detect, if an object has a special field with a known name, and if yes, how can I access it?</p>
  
  <p>Sadly the code of that remote object is not under my control. I can just use the object, but not modify the base or source of it.</p>
  
  <p>In JAVA, that would be simple reflection.</p>
  
  <p>Thanks in advance for your help!</p>