.. include:: Function Templates ================== Origin: Duplicated Code ----------------------- **Overloading**: function ``max`` with different implementations ... .. code-block:: c++ int max(int a, int b) { return (a T max(T a, T b) { return (a float f = std::max(1.2, 1.3); int i = std::max(1, 2); std::string s = std::max("abc", "abd");