I can understand how it work if they are inlined. But if they are not, how does it work? does all object files get their own copy of for example the function template anyway
Templates are really very very advanced MACROS (#define)
parameters are replaced at compile time with the passed values. Really great concept and also implemented very wel.