Add std::function.