hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Šimon Tóth

Structured bindings were introduced in C++17.

They allow the decomposition of arrays, tuples and non-static data members into named identifiers.

The original object is captured following the standard deduction rules for auto; the identifiers are effectively transparent references into the captured object.

Compiler Explorer link: compiler-explorer.com/z/4TKWW3

@simontoth Nice demonstration. One of my favorite C++17 features!