#include <iostream> //using auto with function template template<class T> auto b(T x, T y){ return x + y; } int main() { std::cout << b(1, 2) << std::endl; //3 }