Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: C++ User's Guide Oracle Solaris Studio 12.3 Information Library |
3. Using the C++ Compiler Options
6. Creating and Using Templates
7.2.2 Whole-Class Instantiation
7.2.3 Compile-Time Instantiation
7.2.4 Template Instance Placement and Linkage
7.3.1 Possible Cache Conflicts
7.4.2 Writing to the Template Repository
7.4.3 Reading From Multiple Template Repositories
7.4.4 Sharing Template Repositories
7.4.5 Template Instance Automatic Consistency With -instances=extern
7.5 Template Definition Searching
7.5.1 Source File Location Conventions
7.5.3 Troubleshooting a Problematic Search
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using the C++ Standard Library
Template compilation requires the C++ compiler to do more than traditional UNIX compilers have done. The C++ compiler must generate object code for template instances on an as-needed basis. It might share template instances among separate compilations using a template repository. It might accept some template compilation options. It must locate template definitions in separate source files and maintain consistency between template instances and mainline code.