Select Git revision
templates-04.cpp 251 B
#include <iostream>
using std::cout;
using std::endl;
class bla
{
int content;
};
template <typename t>
void print (t x)
{
cout << x << endl;
}
int main ()
{
print (42);
print ("Hello, world!");
bla blubb;
print (blubb);
return 0;
}