Summary
A new article at CodeProject.com describes how functions which behave like filters can be redirected from one to another.
Advertisement
If your function behaves like a filter (taking input from stdin, and outputting to stdout), why not redirect it like a filter? In a recent article at http://www.codeproject.com/useritems/function-pipes.asp I describe a filter class which wraps void function pointers, and overloads the >> operator to allow redirection of the stdout of one function to the stdin of another.