-
What are the two advantage of function objects than the function call?
-
- Garbage value
- It contains a state
- It is a type
- It contains a state & It is a type
- None of these
Correct Option: D
A function object can contain state. The second is that a function object is a type and therefore can be used as a template parameter.