What state ...
Site Language: English
Terms and Conditions
What statements about predicates and functors are true (indicate all that apply)?
A predicate is a special case of a functor.
A predicate can only be a structure, and a functor can also be a class.
Predicates can be used to sort items in containers.
The operator() method of a functor can only return values of type bool.
The operator < must be overriden for functor.
A predicate is a structure, with an overridden
, which returns a bool. In the general case (when
returns not bool), such a structure is called a functor.
Login to learn C++
Read more about
Sign Up Now
Subscribe for future quizzes