Understanding C++ Struct syntax
<p>I am learning iOS development and have come across a snipet of code in an SDK which I am having trouble deciphering.</p>

<pre><code>struct PinchScaleState
{
    PinchScaleState ()
    : currentScale (1.f)
    , initialPinchScale (1.f)
    {}

    float currentScale;
    float initialPinchScale;
};
</code></pre>

<p>I get that the above code is defining a C Struct which has the properties</p>

<pre><code>float currentScale;
float initialPinchScale;
</code></pre>

<p>But I am unsure what the following is doing</p>

<pre><code> PinchScaleState ()
 : currentScale (1.f)
 , initialPinchScale (1.f)
 {}
</code></pre>

<p>I am guessing it is setting up initial values but I am not sure.</p>

<p>Thanks!</p>