Given std::pair<std::set<int>, std::set<int>> p
, what is the right syntax to move its elements via structured binding?
How to do
std::set<int> first_set = std::move(p.first);
std::set<int> second_set = std::move(p.second);
via structured binding syntax? Is the following equivalent to the above?
auto&& [first_set, second_set] = p;