std::function<void(int a,int b)> ha; //函数封装  当成参数用
callback  std::bind(&fun1,this,std::placeholders::_1,std::placeholders::_2)  //函数回调时使用

方便之处:类型安全。

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
猜你喜欢
  • 2022-01-18
  • 2021-10-31
  • 2021-11-30
  • 2021-08-14
  • 2021-12-24
  • 2022-02-26
相关资源
相似解决方案