Possible Duplicate:
What is predicate in C++?
When I read the C++ primer, there is a defined term which is predicate.
The definition is this :
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).
Anyone that returns a type that can be converted to bool can be predicate ! Right? Or there are some other restrictive conditions.
Thanks!