Files
mp-units/docs/tutorials/index.md
2026-01-05 19:17:16 +01:00

30 lines
1.2 KiB
Markdown

# Tutorials
Welcome to the **mp-units** tutorials — your step-by-step guide to mastering type-safe
physical quantities and units in C++.
Each lesson is:
- **Exercise-driven:** Learn by doing, with real-world scenarios and hands-on code.
- **Type-safe:** Avoid common bugs by leveraging strong types and modern C++ features.
- **Interactive:** Try code snippets live via Compiler Explorer embeds.
- **Incremental:** Progress from basic refactoring to advanced topics like affine spaces
and `std::chrono` interop.
Whether you're new to physical units in C++ or looking to deepen your expertise, these
practical, type-safe patterns will help you apply **mp-units** in real projects.
## Learning Path
1. [Refactor to Strong Types](tutorial_1.md)
2. [Refactor to Generic, Type-Safe Interfaces](tutorial_2.md)
3. [Extracting Numeric Values](tutorial_3.md)
4. [Working with Temperatures](tutorial_4.md)
5. [Affine Spaces and Reference Origins](tutorial_5.md)
6. [Interop with `std::chrono`](tutorial_6.md)
7. [Custom Units for Dimensionless Counters](tutorial_7.md)
8. [Typed Quantities of the Same Kind](tutorial_8.md)
9. [Custom Quantity Specifications](tutorial_9.md)
10. [Custom Base Dimensions](tutorial_10.md)
11. [Faster-than-Lightspeed Constants](tutorial_11.md)