title: Avoiding Raw Loops and using std::algorithm instead
body: <p>I'm trying to follow the advice given, among other place, <a href="https://www.youtube.com/watch?v=qH6sSOr-yk8&amp;list=PL0IJqh3Gjgo2dfreKafVN8siMoIiW21lc" rel="nofollow">here</a> to avoid  raw loops and use <code>std::algorithm</code> instead. So I would be thankful if you could help me do that, if possible, in the following case:</p>
  
  <pre><code>std::stringstream ss;
  std::vector&lt;Object&gt; v;
  for (const auto&amp; curr : v) { ss &lt;&lt; curr.ToString() &lt;&lt; '\n'}
  return ss.str()
  </code></pre>