Mega Code Archive
Function with generic parameters
#include
using namespace std;
template
void f(type1 x, type2 y)
{
cout << x << ' ' << y << '\n';
}
int main()
{
f(10, "AAAAA");
f(98.6, 19L);
f('C', 'V');
f('C', 0);
return 0;
}
10 AAAAA
98.6 19
C V
C 0