jweinst1
9/8/2016 - 7:29 AM

autotemp.cpp

#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
}