Suppose I have a template class like
template<class T> class Foo{
T a;
auto baz(){
return 4.2f;
}
};
int main(){
Foo<int> bar;
return 0;
}
Is there a tool which can convert this code to actual class and give output as :
class Foo{
int a;
float baz(){
return 4.2f;
}
};
// main goes below this line
A tool that replaces all auto
and template arguments with deduced types.
I was working with templates and was curious if there was any such tool as it could be a good for learning type deduction?