Skip to content

docs: advance Chapter 09 Functions through C++26 - #16

Open
yuchdev wants to merge 4 commits into
masterfrom
docs/ch09-functions-cpp98-cpp26
Open

yuchdev wants to merge 4 commits into
masterfrom
docs/ch09-functions-cpp98-cpp26

Conversation

@yuchdev

@yuchdev yuchdev commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Reviewed the nine function examples and expanded advanced treatment of consteval, C++23 explicit object parameters, invoke_r, move_only_function, C++26 function_ref, coroutine frames, and C++26 pack indexing. Normalized all numbered H2 sections to the established chapter contract. Documentation-only and C++20 baseline preserved. The reusable Python chapter-structure checker is introduced separately in PR #15; this chapter's structure is prepared for that validation.

Copilot AI balanced review requested due to automatic review settings October 18, 2026 17:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The explicit-object accessor returns copies instead of preserving the cv/ref behavior it illustrates.

2 open issues
What changed in this PR

Extends Chapter 09’s function coverage through C++26 without changing executable examples or the C++20 build baseline.

Changes:

  • Adds advanced discussion of modern callable APIs, forwarding, and coroutine lifetimes.
  • Updates the standards timeline and normalizes existing section numbering.
File Description
01_low_level/​09_functions/​README.md Expands modern function coverage and updates chapter structure.

Review effort: Balanced

int value = 0;
template<class Self>
decltype(auto) get(this Self&& self) {
return std::forward<Self>(self).value;
* std::quick_exit: doesn't execute static destructors, but does flush critical IO and call handler if exists
---

## Advanced function rules that matter from C++20 to C++26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants