Functors taking 1 argument for operator() should inherit from
unary_function and those with 2 arguments should inherit from
binary_function. If a functor has zero arguments for its operator()
should it inherit from anything to make it adaptable? I've not heard of
anything before which is surprising. If books don't talk about it then
its an unanswered question to many people. Maybe its adaptable without
inheriting anything, which would explain the absence. It may be an
oversight of the STL.
Fraser.
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***