22.2 Compile-Time Polymorphism
- Templates instantiated in many different ways
- Does its work at compile time
- Compiler creates template functions from
the function template, as needed
- Few run-time costs
- A function template prototype is meaningless
- Templates are commonly stored in included files
- Not compiled separately (sect. 22.6)
- Compiler looks for non-templates first
prev
|top
|next