title: Test if all elements of a vector are equal
body: <p>I want to test if a non-empty vector contains identical elements. Is this the best way?</p>
  
  <pre><code>count(vecSamples.begin()+1, vecSamples.end(), vecSamples.front()) == vecSamples.size()-1;
  </code></pre>