<p>I thought that <code>std::pair<></code> would be better to use here since it is a more well-known class, and allows us to avoid declaring the <code>Candidate</code> class many different places in the code. Do you think there is a compelling reason to keep the <code>Candidate</code> class? If the thought is that the <code>Candidate</code> name makes it clear, we can just add a comment like this:</p>
<pre><code>// Holds an (index, score) pair.
std::pair<size_t, double> candidate;
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/732#issuecomment-234966216">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFGBLRrcOB_vJaw5ZX3OQXtkDTYz3ks5qZMWygaJpZM4JScnZ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFjO4edrzkgW2ZW7mDD3vR3Uwy8Kks5qZMWygaJpZM4JScnZ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/732#issuecomment-234966216"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>