Which of the two would initialize an object faster?
<pre><code>class A {
   public:
   int a;
   A(int x)
   {
      a = x;
   }
};
</code></pre>

<p>OR</p>

<pre><code>class B {
       public:
       int b;
       B(int x):b(x){}
};
</code></pre>

<p>Which one would initialize the object faster ? Or will same code be generated ultimately for both and the time taken to initialize will remain the same ? Or does it depend on the compiler ?</p>
