December 2001
Intermediate to advanced
304 pages
6h 25m
English
Difficulty: 7
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?
1. What are predicates, and how are they used in STL?
A predicate is a pointer to a function, or a function object (an object that supplies the ...
Read now
Unlock full access