Template Instantiation
How many versions of this function exist in the final binary?
template<typename T>
T add(T a, T b) { return a + b; }
int main() {
add(1, 2);
add(1.0, 2.0);
add(1, 3);
}
Sign in to answer questions and track your progress
Sign In