title: Access all object elements as an array
body: <p>If I have created a class like this:</p>
  
  <pre><code>struct test{
    int a;
    int b;
    string c;
  };
  </code></pre>
  
  <p>and wanted to iterate through each data member as if it was an array how could i do it?(Assuming the number of members may change in a future update.)</p>