Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++generic lambdasSingle-choice MCQ

In the generic lambda below, what does decltype(x) deduce to inside the call?

auto f = [](auto&& x) { return std::is_same_v<decltype(x), int&>; }; int a = 5; bool r = f(a);