The Syntax
Below is the syntax we can use to access and bind tuple values with variables safely.
We'll cover the following...
The basic syntax for structured bindings is as follows:
Press + to interact
auto [a, b, c, ...] = expression;auto [a, b, c, ...] { expression };auto [a, b, c, ...] ( expression );
The compiler introduces all identifiers from the a, b, c, ...
list as names in the surrounding
scope and binds them to ...