What does structured binding in C++17 allow?
- A Decomposing a pair, tuple or struct into named variables in one declaration
- B Binding a reference to a temporary
- C Linking against multiple libraries
- D Binding a lambda to a thread
Answer
Decomposing a pair, tuple or struct into named variables in one declaration
Writing auto [key, value] = pair is far clearer than accessing .first and .second, especially when iterating a map.





