两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 |
public:it:cplusplus [2023/11/17 12:28] – [Articles] oakfire | public:it:cplusplus [2025/02/17 14:59] (当前版本) – [Articles] oakfire |
---|
* [[https://github.com/google/sanitizers/wiki/AddressSanitizer|AddressSanitizer]] 内存错误检测:-o | * [[https://github.com/google/sanitizers/wiki/AddressSanitizer|AddressSanitizer]] 内存错误检测:-o |
* Meson 构建系统打开 ASAN 的方式:[[https://mesonbuild.com/Builtin-options.html#base-options|设置 b_sanitize]] | * Meson 构建系统打开 ASAN 的方式:[[https://mesonbuild.com/Builtin-options.html#base-options|设置 b_sanitize]] |
* [[https://agraphicsguynotes.com/posts/fiber_in_cpp_understanding_the_basics/|Fiber in c++: 基础理解]] | * [[https://agraphicsguynotes.com/posts/fiber_in_cpp_understanding_the_basics/|Fiber in C++: 纤程的原理与实现]] |
| * [[https://learnmoderncpp.com/|Learn Modern C++]] |
| * [[https://blogs.gentoo.org/mgorny/2024/09/23/overview-of-cross-architecture-portability-problems/|C的移植性问题,参考]] |
| |
===== Syntax ===== | ===== Syntax ===== |
* 关于 shared_ptr 的线程安全:[[https://www.boost.org/doc/libs/1_73_0/libs/smart_ptr/doc/html/smart_ptr.html#shared_ptr_thread_safety|shared_ptr_thread_safety]] | * 关于 shared_ptr 的线程安全:[[https://www.boost.org/doc/libs/1_73_0/libs/smart_ptr/doc/html/smart_ptr.html#shared_ptr_thread_safety|shared_ptr_thread_safety]] |
* c++ 14 新增 std::make_unique, std::shared_timed_mutex, std::shared_lock, std::integer_sequence, std::exchange, std::quoted | * c++ 14 新增 std::make_unique, std::shared_timed_mutex, std::shared_lock, std::integer_sequence, std::exchange, std::quoted |
* c++ 17 新增 std::variant, std::optional, std::any, std::apply, std::string_view, std::shared_mutex | * c++ 17 新增 std::variant, std::optional, std::any, std::apply, std::string_view, |
* 新增文件操作相关 std::filesystem | * 读写锁 std::shared_mutex |
| * 文件操作相关 std::filesystem |
* c++ 20 新增 std::format, 基于[[https://docs.python.org/3/library/string.html#formatspec|python格式化规范]] | * c++ 20 新增 std::format, 基于[[https://docs.python.org/3/library/string.html#formatspec|python格式化规范]] |
* 可中断线程 std::jthread, std::stop_toke | * 可中断线程 std::jthread, std::stop_token |
| * 并发控制 std::barrier, std::latch |
| * 协程关键字 co_await, co_yield, co_return |
| * 操作 std::ranges, std::views |
* 原子引用 std::atomic_ref | * 原子引用 std::atomic_ref |
* 数学常数 std::numbers | * 数学常数 std::numbers |