20 — Grounding and References

20 — Grounding and References

This guide is intentionally compact, so it omits many edge cases. Use these references when you want the precise language-lawyer version.

Primary References

Core Topics

Ownership and Memory

Containers, Algorithms, and Views

Concurrency

Tooling

Compiler Verification

The examples were checked with a small verification harness in the repository:

tools/verify-cpp-guide/

Positive examples compile and run under GCC 15.2.1 with C++20. The std::expected example compiles and runs under C++23. The intentionally unsafe examples in the undefined-behavior section were checked separately with Clang 21.1.8 and AddressSanitizer/UndefinedBehaviorSanitizer.

Run it locally with:

cd tools/verify-cpp-guide
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j
./build/verify_cpp_guide
./build/expected_cpp23

Accuracy Notes

  • C++ has multiple valid styles depending on domain. Embedded, finance, game engines, safety-critical software, and application backends often make different choices around exceptions, allocation, RTTI, templates, and standard library usage.
  • The guide defaults to mainstream modern C++17/20 style: RAII, standard containers, value semantics, explicit ownership, CMake, tests, and sanitizers.
  • Some C++23 features, especially std::expected, may require a recent compiler and standard library.
  • Modules and coroutines are important but intentionally not emphasized in the recovery path because adoption and usefulness vary by codebase.

00 / The Agent

The chat box that lives on the blog.

running on Cloudflare · free tier

A tiny JS island posting to a Cloudflare Worker that streams answers from a free Nemotron endpoint. No origin server. No database. The static site stays static — this one box is the only thing that breathes.