462 B
462 B
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 constexprand fold expressions
Exercises
| Exercise | Feature |
|---|---|
structured_bindings |
Structured bindings |
optional |
std::optional |
variant |
std::variant + std::visit |
if_constexpr |
Compile-time branching |