2 ms·
It also works without templates: auto add(int a, int b){ return a + b; } But yes there's usually less reason to do it for a normal function.
by logicchains 6y ago
It also works without templates:
auto add(int a, int b){
return a + b;
}
But yes there's usually less reason to do it for a normal function.