C ++ Boost Bind Performance
问题 Are there any performance impacts (positive or negative) when binding functions (using Boost Bind) ? 回答1: Maybe, may not be. It depends. The result of std::bind (or also boost::bind ) is a so-called "bind expression", which has an unknowable type determined by the implementation. This type is a Callable , and it is convertible to an instance of std::function (or boost::function ). Internally, function (may) use type erasure to handle various complex, stateful "callable objects". This