title: How to add a vector in reverse order with another vector in C++?
body: <p>There is a vector <code>vector&lt;int&gt;v</code><br>
  I want to add another vector <code>vector&lt;int&gt;temp</code> in reverse order with this vector.</p>
  
  <p>For example,</p>
  
  <pre><code>   v = {1, 5, 7} and
  
  temp = {11, 9, 8}
  </code></pre>
  
  <p>I want to add temp in reverse order, that is <code>{8, 9, 11}</code> to vector <code>v</code>.  </p>
  
  <p>So that, <code>v</code> will be : <code>v = {1, 5, 7, 8, 9, 11}</code></p>
  
  <p>Here's how i did it :</p>
  
  <pre><code>int a[] = {1, 5, 7};
  vector&lt;int&gt;v(a,a+3);
  int b[] = {11, 9, 8};
  vector&lt;int&gt;temp(b,b+3);
  
  for(int i=temp.size()-1;i&gt;=0;i--)
    v.push_back(temp[i]);
  
  for(int i=0;i&lt;v.size();i++)
    cout&lt;&lt;v[i]&lt;&lt;" ";
  cout&lt;&lt;"\n";
  </code></pre>
  
  <p>Is there a built in function in STL or C++ to do this ? or do i have to do it manually ?</p>