Daily bit(e) of C++ | structured binding declaration
Daily bit(e) of C++ ♻️162, Deconstructing arrays, tuples and non-static data members of aggregates using structured binding.
The structured binding declaration was introduced in C++17. It allows 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 references into the captured object.