Generic Programming is a programming paradigm to write efficient, reusable code and software libraries, to operate on any data type, required being passed as a parameter, in C++ a compile timetype parameter. Generic programming, first implemented in the Ada programming language, was pioneered by Alexander Stepanov[1], David Musser and Deepak Kapur, and obtained success in C++ when the Standard Template Library became ANSI/ISO C++ standard [2] . Generic programming invokes a metaprogramming facility within a language, in those languages supporting it. In C++, template paramater are either types or integer constants for the wider range of Template- or metaprogramming. For instance in computer chess programming, it allows to write color dependent routines once, and disband otherwise conditional code at compile-time.
Table of Contents
Generic Programming is a programming paradigm to write efficient, reusable code and software libraries, to operate on any data type, required being passed as a parameter, in C++ a compile time type parameter. Generic programming, first implemented in the Ada programming language, was pioneered by Alexander Stepanov [1], David Musser and Deepak Kapur, and obtained success in C++ when the Standard Template Library became ANSI/ISO C++ standard [2] . Generic programming invokes a metaprogramming facility within a language, in those languages supporting it. In C++, template paramater are either types or integer constants for the wider range of Template- or metaprogramming. For instance in computer chess programming, it allows to write color dependent routines once, and disband otherwise conditional code at compile-time.
Selected Publications
[3]Forum Posts
External Links
An Introduction to Generic Programmin by Douglas Gregor
C++
C#
Java
Delphi
References
What links here?
Up one Level