How can you force instantiation of a template?



How can you force instantiation of a template?..

Answer / bhargavi

You can force the instantiation of a specialization of the
template by specifying a prototype somewhere in your code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the purpose of decltype?

1 Answers  


Is swift better than c++?

1 Answers  


Do the parentheses after the type name make a difference with new?

1 Answers  


What is the use of map in c++?

1 Answers  


What is the purpose of templates in c++?

1 Answers  


What is the two main roles of operating system?

1 Answers  


Why do we learn c++?

1 Answers  


What does return 0 do in c++?

1 Answers  


Write a recursive program to calculate factorial in c++.

1 Answers  


What problems might the following macro bring to the application?

1 Answers  


How do you add an element to a set in c++?

1 Answers  


What are the storage qualifiers?

1 Answers  


Categories