Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++ranges librarySingle-choice MCQ

What does this ranges pipeline produce?

std::vector<int> v{1,2,3,4,5}; auto r = v | std::views::filter([](int n){ return n % 2 == 0; }) | std::views::transform([](int n){ return n * n; });