上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 66 下一页
摘要: title: std::shared_ptr转std::unique_ptr date: 2022-10-03 20:10:36 tags: 不能直接转,只能将其移动到另一个用std::unique_ptr管理的对象里。 #include <iostream> #include <memory> i 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(3) 评论(0) 推荐(0) 编辑
摘要: title: pb_ds学习笔记 date: 2020-03-30 22:39:47 文档:Policy-Based Data Structures 相关文章:pb_ds库实现支持多个相同的值的名次树 建议使用 using namespace __gnu_pbds; tree 参考:https:// 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: "error: use of deleted function ‘std::pair<const int, int>& std::pair<const int, int>::operator=(cons" date: 2021-02-22 14:23:25 error: use of 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
摘要: title: cppunit for linux入门笔记 date: 2020-05-25 12:20:48 tags: 我是用apt安装的 sudo apt install -y libcppunit-dev libcppunit-doc mkdir -p ~/doc ln -s /usr/sha 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: C++ memory order date: 2023-03-16 15:40:17 tags: 现代处理器是乱序执行的。虽然现代处理器通常而言保证了一个线程可以认为自己是串行执行的,也就是说前面的指令一定不会受到当前线程的后面的指令的影响,而且后面的指令一定可以看到前面的指令的执行结 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: constexpr函数中使用循环 date: 2021-12-27 22:55:23 tags: 从C++14开始,constexpr函数中也可以使用循环了。 constexpr int pow(int a, int b) { int ans = 1; while (b--) { an 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: conan学习笔记 date: 2023-05-16 13:14:02 tags: 官方教程: https://docs.conan.io/2/tutorial.html https://docs.conan.io/2/tutorial/developing_packages/loca 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(4) 评论(0) 推荐(0) 编辑
摘要: title: cmake使用C++17 date: 2022-03-02 19:13:50 tags: target_compile_features(${TARGET_NAME} PRIVATE cxx_std_17) 下面这种方法好像已经没有用了: set(CMAKE_CXX_STANDARD 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
摘要: title: boost::system::error_code赋值 date: 2020-04-25 16:57:05 tags: 参考:https://theboostcpplibraries.com/boost.system boost::system::error_code error = 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
摘要: title: C++ panic date: 2022-09-30 21:27:56 tags: #define panic(...) do { \ fprintf(stderr, "panic: %s:%u: %s:", \ __FILE__, __LINE__, __func__); \ fpr 阅读全文
posted @ 2024-09-28 14:05 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 66 下一页