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

How do you declare a set in c++?

542


Is there any difference between int [] a and int a [] in c++?

558


What do you mean by const correctness?

631


What are the advantages of pointers?

602


What is a constructor in c++ with example?

584






Which function should be used to free the memory allocated by calloc()?

594


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1509


What are the rules for naming an identifier?

565


How can you create a virtual copy constructor?

587


Differentiate between late binding and early binding. What are the advantages of early binding?

586


Explain unexpected() function?

588


You run a shell on unix system. How would you tell which shell are you running?

663


What are the differences between the function prototype and the function defi-nition?

627


What is the importance of mutable keyword?

587


Write about a nested class and mention its use?

630