Pass an object as parameters to a function in C++
<p>In Javascript or ActionScript it's possible to pass an object to a function or a constructor.</p>

<pre><code>myfunction({myParam:1, myOtherParam:"hello"});
</code></pre>

<p>It is very useful when you have a lot of parameters to pass, IMO it makes using functions easier than using the classic approach.</p>

<pre><code>myFunction(1,"hello");
</code></pre>

<p>Is there something similar in C++?</p>

<p>TIA</p>
