An interface template looks like this:
interface TemplateInterface(T) {
T x();
}
This interface needs to be used as a parameter for a function, but I'd like to avoid defining the template type in the function signature. Is there some way to just have the function signature accept whatever template type is being passed to the function, like a templated function?
For example:
// no good, do not want to constrain template type at this point
void func1(TemplateInterface!int parm1) {...
// this would be better, but the syntax is wrong apparently
void func1(TemplateInterface parm1) {...