| 11 | } |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | int small_int {10}; |
| 16 | std::cout << "Larger of " << small_int << " and 9.6 is " |
| 17 | << larger(small_int, 9.6) << std::endl; // deduced return type: double |
| 18 | |
| 19 | std::string a_string {"A"}; |
| 20 | std::cout << "Larger of \"" << a_string << "\" and \"Z\" is \"" |
| 21 | << larger(a_string, "Z") << '"' << std::endl; // deduced return type: std::string |
| 22 | } |
| 23 |