- The Modern C++ Challenge
- Marius Bancila
- 57字
- 2021-06-25 22:01:26
18. Minimum function with any number of arguments
Write a function template that can take any number of arguments and returns the minimum value of them all, using operator < for comparison. Write a variant of this function template that can be parameterized with a binary comparison function to use instead of operator <.