title: Filling a vector of pairs
body: <p>I want to fill a vector with 8 pairs. Each pair represents the moves in x and y coordinates a knight in a game of chess can make. At the moment I'm doing it like this</p>
  
  <pre><code>vector&lt;pair&lt;int,int&gt;&gt; moves;
  
  pair&lt;int,int&gt; aPair;
  aPair.first = -2;
  aPair.second = -1;
  moves.push_back(aPair);
  aPair.first = -2;
  aPair.second = 1;
  moves.push_back(aPair);
  aPair.first = -1;
  aPair.second = -2;
  moves.push_back(aPair);
  aPair.first = -1;
  aPair.second = 2;
  moves.push_back(aPair);
  aPair.first = 1;
  aPair.second = -2;
  moves.push_back(aPair);
  aPair.first = 1;
  aPair.second = 2;
  moves.push_back(aPair);
  aPair.first = 2;
  aPair.second = -1;
  moves[6].push_back(aPair);
  aPair.first = 2;
  aPair.second = 1;
  moves.push_back(aPair); 
  </code></pre>
  
  <p>I'm doing this to learn about the Std library. This seems like a hopelessly inefficient way of solving this problem.</p>
  
  <p>Anyone have a more elegant solution? </p>