📅  最后修改于: 2022-03-11 14:44:55.780000             🧑  作者: Mango
auto tuple = std::make_tuple(1, 'a', 2.3);
std::array a{1, 2, 3};
// unpack the tuple into individual variables declared above
const auto[i, c, d] = tuple;
// same with an array
auto[x,y,z] = a;