Skip to content

Complete Beginner Tutorial ​

This directory contains the complete beginner tutorial for the OnceCallback component — 13 articles in total, covering the full learning path from a review of core C++ features to implementing and testing the component.

Prerequisites ​

First, master the core C++ features that OnceCallback relies on:

Hands-on Practice ​

With the prerequisites covered, we move on to implementing OnceCallback:

Companion Code ​

The standalone C++ example code covered in the prerequisite chapters has been distilled into a compilable minimal project, located at:

text
code/volumn_codes/vol9/full_tutorial_codes/chrome_design/
ExampleTopicSource ArticleMinimum C++ Standard
01_move_semantics.cppMove semantics, perfect forwarding, variadic templatespre-00C++17
02_smart_pointers.cppunique_ptr, shared_ptrpre-00C++17
03_atomic_memory_order.cppatomic, memory_order, enum classpre-00C++17
04_lambda_basics.cppCapture modes, generic lambda, [[nodiscard]]pre-00C++17
05_lambda_advanced.cppmutable lambda, init capture, C++17/C++20 bindpre-03C++20
06_type_traits.cpptype traits, if constexpr, decltype(auto), ref-qualifierpre-00C++17
07_function_type_specialization.cppFunction types, FuncTraits, primary template + partial specializationpre-01C++17
08_invoke.cppstd::invoke, std::invoke_result_tpre-02C++17
09_concepts_requires.cppconcept, requires, not_the_same_t, template constructor hijackingpre-04C++20
10_move_only_function.cppstd::move_only_function construction/move/empty check/SBOpre-05C++23
11_deducing_this.cppdeducing this deduction rules, lvalue interceptionpre-06C++23

Build instructions:

bash
cd code/volumn_codes/vol9/full_tutorial_codes/chrome_design
mkdir build && cd build
cmake ..
make -j$(nproc)

pdf-latest-4-g85128cc · 85128cc · 2026-10-05