inserting value of a struct to pair in C++
<p>I have read in the C++ reference for map insertion and in the example is shown the following code</p>

<pre><code>std::map&lt;char,int&gt; mymap;
mymap.insert (it, std::pair&lt;char,int&gt;('b',300));
</code></pre>

<p>while at the same time I saw a code of a similar operation with </p>

<pre><code>mymap.insert( pair&lt;uuid,structval&gt;( (*it).first, structval() ) );
</code></pre>

<p>The structval itself is declared as a normal structure</p>

<pre><code>    struct structval { 
//some params 
};
</code></pre>

<p>Can anyone please explain me why to initiate the pair of structval we can simply call the structure by using structval() operation? What does structval() there means? Is this a valid way to access a struct and put it as a pair?</p>

<p>Thank you</p>
