摘要:
1、std::join std::join是std::thread类的成员函数之一,用于等待线程的执行完成。 #include <iostream> #include <utility> #include <thread> #include <chrono> #include <atomic> vo 阅读全文
posted @ 2023-11-24 15:11
左边的翼
阅读(829)
评论(0)
推荐(0)
摘要:
1、std::function std::function是一个模板类,其可对C++可调用的对象进行封装,比如,成员函数、静态函数等;它的基本作用是简化调用的复杂程度,归一化调用方式。 std::function<int(int, int)> int_function:声明方式为<返回值类型(参数类 阅读全文
posted @ 2023-11-24 10:24
左边的翼
阅读(1308)
评论(0)
推荐(0)

浙公网安备 33010602011771号