Actually, the code for pairs is exactly the same, since std::tuple
has operator =
with std::pair
as an argument.
num_letter = std::make_pair(10, 'a');
std::tie(num, letter) = num_letter;
Actually, the code for pairs is exactly the same, since std::tuple
has operator =
with std::pair
as an argument.
num_letter = std::make_pair(10, 'a');
std::tie(num, letter) = num_letter;