Functor vs. Function

What's the difference between a functor, which has the purpose of storing states in-between function calls, and a function with static variables?
They are basically equivalent, except you can make several functors that each have their own state, whereas a function with statics will only be able to have 1 state.
"functor" has a very specific meaning -- it is an object that (optionally) has a construCTOR and implements the FUNCtion call operator.


Topic archived. No new replies allowed.