What's the predicate in C++?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5921609/what-is-predicate-in-c">What is predicate in C++?</a>  </p>
</blockquote>



<p>When I read the C++ primer, there is a defined term which is <strong>predicate</strong>.</p>

<p>The definition is this :</p>

<p><strong>Functions that returns a type that can be converted to bool. Often used by the generic algorithms to test elements . predicates used by the library are either unary (taking one argument) or binary(taking two).</strong> </p>

<p>Anyone that returns a type that can be converted to bool can be predicate ! Right? Or there are some other restrictive conditions.</p>

<p>Thanks!</p>
