How to insert multiple value in vector in C++?
<p>I want to know that is there any way that we can insert a multiple values in a vector as a single value without using a temp variable?</p>

<p>I mean for example:</p>

<pre><code>struct Something{
    int x;
    int y;
};
int main()
{  
    vector &lt;Something&gt; v;
    int x, y;
    cin &gt;&gt; x &gt;&gt; y;
    v.push_back(x, y);
}
</code></pre>

<p>Is there any way that we avoid doing this(defining another variable, then inserting that, instead of insert <code>x, y</code> directly):</p>

<pre><code>Something temp;
temp.x = x;
temp.y = y;
v.push_back(temp);
</code></pre>
