Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does structured binding in C++17 allow?

  1. A Decomposing a pair, tuple or struct into named variables in one declaration
  2. B Binding a reference to a temporary
  3. C Linking against multiple libraries
  4. 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.

All C++ MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as