Figure 9: The function object EqualType (from conapp.h)

class EqualType {
public:
   EqualType( CCmdArg arg ) : _arg(arg) {}

   bool operator()( CCmdArg& a1 ) {
      return ( a1.GetType() == _arg.GetType() );
   }
private:
   CCmdArg  _arg;
};