Files

18 lines
462 B
Markdown

# 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 |