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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *