Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Metaprogramming

Metaprogramming

Dec 23 2011

Metaprogramming. Creation of programs which in their turn create other programs as the result of their work, or change or amend themselves during execution. An example of metaprogramming: a C++ program generates SQL script to save data into a relational database. We can speak of two types of metaprogramming: metaprogramming on the stage of compilation (code generation) and metaprogramming on the stage of execution (code self-modification).

References

  • Wikipedia. "Metaprogramming"
  • David Abrahams, Aleksey Gurtovoy. C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond. Addison Wesley, 2005, ISBN: 0321227255
Popular related articles