悉野小楼

导航

2023年8月11日

[转]c++ function使用方法

摘要: 原帖:https://blog.csdn.net/myRealization/article/details/111189651 cppreference https://en.cppreference.com/w/cpp/utility/functional/function boost源码剖析之 阅读全文

posted @ 2023-08-11 20:59 悉野 阅读(43) 评论(0) 推荐(0) 编辑

C++多线程不加锁操作同一个整数

摘要: #include <iostream> #include <thread> #include <vector> #include <chrono> #include <atomic> using namespace std; int num = 0; //volatile int num = 0; 阅读全文

posted @ 2023-08-11 14:41 悉野 阅读(69) 评论(0) 推荐(0) 编辑