@@ -98,14 +98,16 @@ Default policies are available under `policy::defaults`:
9898
9999## Examples
100100
101- - ` ex01_default_arithmetic ` : Basic arithmetic under default policies .
101+ - ` ex01_basic_usage ` : Literals + primitive factory helpers with the built-in operator set .
102102- ` ex02_type_policy ` : Type negotiation with ` strict/compatible ` , including how type policy affects construction from ` underlying ` .
103103- ` ex03_value_policy ` : ` checked/unchecked/saturating ` behavior, including mixed binary operations with ` underlying ` .
104104- ` ex04_error_policy ` : Error-handling behavior across different error policies.
105105- ` ex05_concurrency_policy ` : Representative mixed read/write concurrency workload (writer ` store ` + reader ` add/sub ` + ` CAS ` ).
106- - ` ex06_custom_underlying ` : Custom underlying traits, rep validation, and common-rep extension.
107- - ` ex07_custom_policy ` : Custom policy protocol implementation.
108- - ` ex08_custom_operation ` : Custom operation extension.
106+ - ` ex06_conversion ` : Checked/saturating/truncating/exact conversion helpers across underlying values and primitives.
107+ - ` ex07_algorithms ` : Limits metadata, special numeric values, and hashing helpers.
108+ - ` ex08_custom_underlying ` : Custom underlying traits, rep validation, and common-rep extension.
109+ - ` ex09_custom_policy ` : Custom policy protocol implementation.
110+ - ` ex10_custom_operation ` : Custom operation extension.
109111
110112## Project Layout
111113
@@ -117,7 +119,7 @@ mcpplibs-primitives/
117119│ ├── policy/ # policy tags and protocol implementations
118120│ ├── operations/ # operation tags / dispatcher / operators
119121│ └── underlying/ # underlying traits and common_rep
120- ├── examples/ # ex01 ~ ex08 examples
122+ ├── examples/ # example programs
121123├── tests/ # test entry and basic test suite
122124├── xmake.lua # xmake build script
123125├── CMakeLists.txt # CMake build script
@@ -151,7 +153,10 @@ xlings install
151153
152154``` bash
153155xmake build mcpplibs-primitives
154- xmake run basic # equivalent to ex01_default_arithmetic
156+ xmake run basic # compatibility alias for ex01_basic_usage
157+ xmake run ex01_basic_usage
158+ xmake run ex06_conversion
159+ xmake run ex07_algorithms
155160xmake run ex05_concurrency_policy
156161xmake run primitives_test
157162```
@@ -161,7 +166,9 @@ xmake run primitives_test
161166``` bash
162167cmake -B build -G Ninja
163168cmake --build build --target mcpplibs-primitives
164- cmake --build build --target ex01_default_arithmetic
169+ cmake --build build --target ex01_basic_usage
170+ cmake --build build --target ex06_conversion
171+ cmake --build build --target ex07_algorithms
165172cmake --build build --target basic_tests
166173ctest --test-dir build --output-on-failure
167174```
0 commit comments