Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++structured bindingsSingle-choice MCQ

For the binding `auto [a, b] = expr;` where `expr` is a `std::tuple<int, int>`, what does the standard guarantee about the number of times the tuple is constructed/copied to produce the bindings?

std::tuple<int,int> make(); auto [a, b] = make();