title: C++ ostream out manipulation
body: <p>well basically it should list all the vector coords in this kind of format :</p>
  
  <p>(x, y, z)</p>
  
  <p>but at the moment it does like this (x, y, z, )</p>
  
  <p>easiest way would be using if in the for cycle, but can i substract a small piece of string from the out variable?</p>
  
  <p>my code:</p>
  
  <pre><code>    template &lt;unsigned short m&gt;
      std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Vector&lt;m&gt;&amp; v) {
      out &lt;&lt; "(";
      for(int i = 0; i &lt; m; i++) {
          out &lt;&lt; v.coords[i] &lt;&lt; ", ";
      }
      out &lt;&lt; ")";
      return out;
  }
  </code></pre>