Answers for "c++ unpack tuple"

C#
0

unpacking c # tuple

unpacking tuple c#
Posted by: Guest on September-17-2020
0

unpack tuple c++

auto tuple = std::make_tuple(1, 'a', 2.3);
std::array<int, 3> 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;
Posted by: Guest on November-15-2021

C# Answers by Framework

Browse Popular Code Answers by Language