07 2023 档案

摘要:```cpp #include #include using namespace std; void once_fun(std::once_flag &&flag) { std::call_once(flag, []() { cout << "message from once fun" << en 阅读全文
posted @ 2023-07-31 20:31 BuzzWeek 阅读(6) 评论(0) 推荐(0) 编辑
摘要:# std::thread::joinable * 默认构造的thread对象 not joinable * join/detach之后 not joinable * 不能反复join/detach,会崩 * 当前线程会阻塞在join()调用处 * detach()不会阻塞当前线程,但是主进程结束后 阅读全文
posted @ 2023-07-26 21:42 BuzzWeek 阅读(183) 评论(0) 推荐(0) 编辑
摘要:# 可平凡复制类型 1. 标量类型(算术类型/枚举/指针) 2. 可平凡复制类类型 Trivially copyable class 3. 可平凡复制类型的数组 4. cv限定的可平凡复制类型(const/volatile) # Trivially copyable class可平凡复制类 > A 阅读全文
posted @ 2023-07-24 21:32 BuzzWeek 阅读(595) 评论(0) 推荐(0) 编辑
摘要:# 内存布局 1. 默认32位编译下,4字节对齐 2. 有虚函数情况下会在内存一开始多一个虚表指针 3. 普通函数不占内存空间 4. 静态成员不占内存空间 # 1. 通过cl命令输出hello.cpp中的类A的内存布局测试 ```cmd # 输出指定类型的内存布局 cl hello.cpp /d1r 阅读全文
posted @ 2023-07-24 13:32 BuzzWeek 阅读(178) 评论(0) 推荐(0) 编辑
摘要:# 1. 基本安装配置 ``` # 安装 curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash sudo apt-get install gitlab-c 阅读全文
posted @ 2023-07-19 20:39 BuzzWeek 阅读(908) 评论(0) 推荐(1) 编辑
摘要:# 1. virtualbox网络设置 ![image](https://img2023.cnblogs.com/blog/2065202/202307/2065202-20230718131347447-223275016.png) ![image](https://img2023.cnblogs 阅读全文
posted @ 2023-07-18 13:16 BuzzWeek 阅读(316) 评论(0) 推荐(0) 编辑
摘要:# 1. 检查ssh是否安装 ``` ps -e | grep ssh ``` ![image](https://img2023.cnblogs.com/blog/2065202/202307/2065202-20230716143946144-103426623.png) > 只有ssh-agen 阅读全文
posted @ 2023-07-16 15:51 BuzzWeek 阅读(396) 评论(0) 推荐(0) 编辑
摘要:# 1. 报错截图 ![image](https://img2023.cnblogs.com/blog/2065202/202307/2065202-20230703212203689-1353544332.png) > Failed to download 'http://cdn.unrealen 阅读全文
posted @ 2023-07-03 21:30 BuzzWeek 阅读(3526) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示