#include <iostream>
#include <string>
template<class T>
T func(T x, unsigned int y) {
if (std::is_same<T, std::string>::value) {
std::string str = x;
for (int i = 0; i < y; ++i)
str += x;
return str;
} else {
return (x * y);
}
}
int main() {
std::string str = "lol";
func(2, 2);
return 0;
}