Although the function objects we have looked at store no data, this is not a requirement. Reuse the interface in Exercise 44(a).
a. Write a function object EqualsK. EqualsK contains one data member (k). EqualsK is constructed with a single parameter (the default is zero) that is used to initialize $k$. Its method returns true if the parameter is equal to $k$.
b. Use EqualsK to test countMatches in Exercise 44 (c).