D
Dave
Hello all,
Consider this template:
template <typename T>
void foo(T bar) {...}
Here are three ways to instantiate this:
1.
This line of code triggers an "implicit instantiation via argument
deduction":
bar(10);
2.
This line of code triggers an "explicit instantiation":
template foo(int bar);
3.
Then there's this way of instnatiating the template:
bar<int>(42);
My questions are:
Has terminology been coined to refer to case 3?
The terminology "implicit instantiation via argument deduction" in case 1
was made up by me. Is there an accepted, in-common-use term for this type
of instantiation?
Thanks,
Dave
Consider this template:
template <typename T>
void foo(T bar) {...}
Here are three ways to instantiate this:
1.
This line of code triggers an "implicit instantiation via argument
deduction":
bar(10);
2.
This line of code triggers an "explicit instantiation":
template foo(int bar);
3.
Then there's this way of instnatiating the template:
bar<int>(42);
My questions are:
Has terminology been coined to refer to case 3?
The terminology "implicit instantiation via argument deduction" in case 1
was made up by me. Is there an accepted, in-common-use term for this type
of instantiation?
Thanks,
Dave