What is a unary predicate C++?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at McGill University, Lives in Montreal, Canada
In other words, a unary predicate is called like a function. The requirement of "callable" is met by a pointer to a function, but also by an object (or a reference to an object) of a type that has the function call operator defined (a so-called functor). One argument is supplied when the predicate is called.Apr 1, 2001
2023-06-16 02:02:29
评论(499)
Helpful(122)
Helpful
Helpful(2)

Benjamin Davis
QuesHub.com delivers expert answers and knowledge to you.
In other words, a unary predicate is called like a function. The requirement of "callable" is met by a pointer to a function, but also by an object (or a reference to an object) of a type that has the function call operator defined (a so-called functor). One argument is supplied when the predicate is called.Apr 1, 2001