How does one implement templates in modern Fortran?
A procedure which does basically the same for integer
, and real
arguments.
Do you need to implement it for each type separately or can you implement it once for a generic type T
?
Currently I do that via preprocessor directives and I want to know if there are other/more elegant ways.