Skip to main content

Practice ยท 2 of 3

minOf over a Pack

Implement minOf(first, rest...) โ€” at least one argument, returns the smallest. Uses pack expansion (a fold with std::min works), and must also handle the single-argument call.

Difficulty: advanced

Back to lesson: Practice: Packs and Folds