The _______ keyword is used to explicitly instantiate a template.
- extern
- instantiate
- explicit
- using
The "extern" keyword can be used to explicitly instantiate a template. While templates are usually instantiated implicitly when they are used, in certain scenarios, developers might want to instantiate a template explicitly to ensure that instantiation happens in a particular translation unit, and "extern" facilitates this.
Loading...
Related Quiz
- What is the primary purpose of using enum in C++?
- In C++ STL, the function _______ is used to remove consecutive duplicate elements in a range.
- Can a friend function of a class access the private members of that class?
- An application performs arithmetic operations on various data types without modifying existing code. Which concept facilitates this?
- What is slicing in the context of object-oriented programming in C++?