How can you force instantiation of a template?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know about C++ 11 standard?

636


How is static data member similar to a global variable?

584


What is a c++ vector?

595


What is the standard template library (stl)?

625


what are the decision making statements in C++? Explain if statement with an example?

654






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

611


Is vector a class in c++?

596


Explain method of creating object in C++ ?

597


What is DlgProc?

604


What is tellg () in c++?

723


Why main function is special in c++?

669


What is array in c++ pdf?

556


What are static type checking?

634


What is the default width for ouputting a long integer using the insertion operator?

693


Define a pointer to a data member of the type pointer to pointer?

576