Variable user-defined parameter list in C++?
<p>I'm looking for a simple way to create a user multi-parameter receiving function, </p>

<p>Here's some pseudo code</p>

<pre><code>#include &lt;iostream&gt;

struct A {
   int m_num;
};

void function(A* a, ...)
{
    /* Pseudo-Code here */
    for each parameter do 
        print a-&gt;m_num
    end
}

int main()
{
   A *a = new A();
   A *b = new A();
   A *c = new A();

   a-&gt;m_num = 1;
   b-&gt;m_num = 10;
   c-&gt;m_num = 100;

   function(a,b,c);

   // delete everything

   return 0;
}
</code></pre>

<p>I can't really use boost here, so if it's possible with standard C++ ( STL Allowed ), it would be great.</p>

<p>EDIT: The function parameters are heterogeneous </p>
