Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

(C++) template

 

Keyword to

* write template functions

* write template classes

* do template metaprogrammming (programs performed at compile time)

 

Templates make it possible to use one function or class to handle many different data types. Exceptions provide a convenient uniform way to handle errors that occur within classes.

 

There is no semantic difference between class and typename in a template-parameter [0] .

 

References

[0]   C++. International Standard. ISO/IEC 14882. Second edition. Paragraph 14.1.2.

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.