release: v0.9.0 ready#124
Merged
Merged
Conversation
vol4-advanced/vol3-metaprogramming-cpp20-23 子卷前三篇: - 01 Concepts 详解(四种语法形式/enable_if 报错对比/标准库概念) - 02 约束模板(subsumption 与重载/原子约束真包含) - 03 requires 表达式(四种成分/不求值/硬错误坑) 配套 9 个示例;报错演示用 -D 宏切换。index 改正式导航。
Steve Downey《The Evolution of std::optional: From Boost to C++26》 拆 6 篇深度笔记,聚焦 optional<T&>(P2988) 从 2005 提出到 2025 年 Sofia 会议投票通过进 C++26 的历程。引用三重身份、assign-through 与 rebind 之争、赋值重绑定、浅层 const、移动语义陷阱、The Beman Project 标准化真相。全部 optional<T&> 代码在 GCC 16.1.1 -std=c++26 实跑,附赋值汇编实证。修正了素材的 CTAD 误断与 Beman 拼写。 接入 2025 目录页。四门禁(validate_frontmatter/check_links/ check_quality/build)全绿。
ch00/05 移动语义实战: - 修正 benchmark 数据硬伤(原文「285ms/3倍」与实测矛盾)→ GCC16 实测重写 - 补全 noexcept 验证代码(原缺 ThrowingType,代码与输出对不上) - 清死链 code/volumn_codes/vol2/ch00-move-semantics(空目录) - 新增 2 个 OnlineCompilerDemo(push_back_emplace、noexcept_sort_vs_realloc) ch01 智能指针 6 篇 CN: - 人称统一(笔者/咱们/您)、删「## 小结」换承接、清 AI 味词、工具链 GCC16 - 修实测硬伤: · raii-deep-dive:exit 验证缺 main(给了输出却链接不过) · unique-ptr:sizeof 代码缺 StatefulDeleter 但输出里有;5 处死链 + PIMPL 死链 · weak-ptr:lock() 实测慢 ~32 倍(原文写 10-15 倍,把直接访问耗时写高了) · custom-deleter:11 处死链 + 末尾整段「## 验证代码」死链 + 535-536 重复行 · scope-guard:验证段死链 新增 code/examples/vol2: noexcept_sort_vs_realloc.cpp、move_benchmark.cpp、push_back_emplace.cpp(均 GCC16 编译验证) EN 同步 ch00/05 + ch01/01-04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.9.0的大体框架更新差不多了,这里准备一下,晚上回来发版