title: How to sum up elements of a C++ vector?
body: <p>What are the <em>good</em> ways of finding the sum of all the elements in a <code>std::vector</code>?</p>
  
  <p>Suppose I have a vector <code>std::vector&lt;int&gt; vector</code> with a few elements in it. Now I want to find the sum of all the elements. What are the different ways for the same?</p>