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

What is function overloading in C++?

725


List the merits and demerits of declaring a nested class in C++?

607


What causes a runtime error c++?

581


Define linked lists with the help of an example.

552


Do you know about C++ 11 standard?

631






When is dynamic checking necessary?

597


Explain the difference between static and dynamic binding of functions?

547


Why is swift so fast?

618


Differences between private, protected and public and give examples.

577


What are the four main data types?

580


How much do coding jobs pay?

550


What is java and c++?

660


what does the following statement mean? int (*a)[4]

617


Why can templates only be implemented in the header file?

656


What is tellg () in c++?

719