title: C++: vector <pair<vector<int>,int> >
body: <p>This is what I am aiming to do...</p>
  
  <pre><code>vector &lt; pair&lt;vector&lt;int&gt;,int&gt; &gt; var_name (x, pair &lt;vector&lt;int&gt;(y),int&gt;);
  </code></pre>
  
  <p>Where x is the size of the vector var_name and y is the size of the vector inside the pair.</p>
  
  <p>The above statement doesn't work because the pair template only allows constants. How can I go about getting both my vectors to size to x and y respectively?</p>