Templates will certainly be a way to write more general and shorter code. Instead of writing your function
blahn times to deal with different types of parameters, you write it once with the typical type for the parameter.
As for the binary size, the code will be created for the instances you create, that is, when specifying the type. I do not see how this will reduce the size of the binaries.
source
share