Showing results for January 2005 - Page 4 of 4 - The Old New Thing

Jan 3, 2005
0
0

Using fibers to simplify enumerators, part 4: Filtering

Raymond Chen
Raymond Chen

One type of higher-order enumeration is filtering, where one enumerator takes the output of another enumerator and removes some elements. In a producer-driven enumerator, you would implement filtering by substituting a new callback function that responds to callbacks on behalf of the client for items that should be filtered, and forwarding callb...

Code