Following up from the introduction given in Item 2, we now examine "stateful" predicates. What are they? When are they useful? How compatible are they with standard containers and algorithms?
What are predicates, and how are they used in STL? Give an example.
When would a "stateful" predicate be useful? Give examples.
What requirements on algorithms are necessary in order to make stateful predicates work correctly?