Home * Programming * Generic Programming

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


C++


C#


Java


Delphi


References

  1. ^ STLport: An Interview with A. Stepanov by Graziano Lo Russo
  2. ^ SO/IEC JTC1/SC22/WG21 - The C++ Standards Committee
  3. ^ Collected Papers of Alexander A. Stepanov

What links here?


Up one Level