Table of ContentsComputing with functions Overview A classic example Another example Searching for a particular value Generalizing the search criterion Rewriting the search function Further generalization Function objects In other words... Example A more interesting example Doing it the hard way Why the approach is ugly How to clean it up Using class gt_n It might be nice if... Nested functions Function objects simulate nested functions Generating function objects Two problems How do other languages do it? Function objects are objects Some sample library functions Using greater and bind2nd Making binders work Function object conventions Abbreviation base classes Definition of greater Making bind2nd work Definition of binder2nd Member functions of binder2nd Definition of bind2nd The point of all this code Other relevant library functions Using ptr_fun and not1 A few more examples Projects Project scheduling Project reviews for Project reviews for Project reviews for Project reviews for |
Author: Andrew Koenig
Email: ark@research.att.com Home Page: http://www.research.att.com/info/ark |