What state ...
Site Language: English
Terms and Conditions
What statements about predicates and functors are true (indicate all that apply)?
A predicate can only be a structure, and a functor can also be a class.
A predicate is a special case of a functor.
The operator() method of a functor can only return values of type bool.
The operator < must be overriden for functor.
Predicates can be used to sort items in containers.
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