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

Which statement about the hidden 'invented variable' behind a structured binding is correct?

std::pair<int, std::string> p{1, "hi"}; auto& [id, name] = p; // What is decltype(name)?