Working with explicit template declarations

In this recipe, we will explore how to speed up the compilation of your template classes by creating an explicit template declaration. This is important because templates require the compiler to create instances of your classes as needed. In certain cases, explicit template declaration might provide the programmer with a means to speed up compilation by caching the template types that are most likely to be used, preventing the need to include the entire definition of a template.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset