You can use STL binders to use binary function objects as unary function objects in many STL algorithms which need them. Suppose you need to find the count of strings
The Java API provides a class called java.util.Observable which can be extended by any Java class. The child class can then be an “observable” class and other objects can “observe”