C++/Template Function1/0
Template Function
Templates let you write generic code that works with any type in C++. Write max<T> with template<typename T>: take two parameters of the same type and return the larger one using the > operator with a ternary.
C++ ยท medium
Start typing...