Files
cpp-course/modules/11_cpp17/README.md
T

18 lines
462 B
Markdown
Raw Normal View History

2026-08-11 17:40:36 +03:00
# Module 11: C++17 Features
## Learning Goals
- Destructure tuples and pairs with structured bindings
- Model optional values with `std::optional`
- Represent alternatives with `std::variant`
- Use `if constexpr` and fold expressions
## Exercises
| Exercise | Feature |
|----------|---------|
| `structured_bindings` | Structured bindings |
| `optional` | std::optional |
| `variant` | std::variant + std::visit |
| `if_constexpr` | Compile-time branching |