且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

std :: function的替代方法,用于将函数作为参数传递(回调等)

更新时间:2023-11-12 11:47:52

您使用的是原始文件

std :: function 不同,这不适用于捕获的lambda或 std :: bind 的结果,或者具有实现 operator()的通用类类型。

Unlike std::function, this will not work with a lambda that captures, or with a result of std::bind, or with a general class type that implements operator().