Writing a function I must declare input and output data types like this:
int my_function (int argument) {}
Is it possible to make such a de
Use a template:
template T my_function(T arg) { // Do stuff } int a = my_function(4);
Or just overload:
int my_function(int a) { ... } char my_function(char a) { ... } bool my_function(bool a) { ... }