boost::function_equal —
Compare two function objects for equality.
template<typename F, typename G> bool function_equal(const F& f, const G& g);
Returns: f == g.Throws: Only if f == g throws.
f == g