Expression templates

From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search

Expression templates is a C++ template metaprogramming technique in which templates are used to represent part of an expression. Typically, the template itself represents a particular type of operation, while the parameters represent the operation to which the operation applies.[1] The expression template can then be evaluated at a later time, or passed to a function. The technique was invented independently by Todd Veldhuizen and David Vandevoorde.[2][1]

References

  1. 1.0 1.1 Vandevoorde, David; Josuttis, Nicolai (2002). C++ Templates: The Complete Guide. Addison Wesley. ISBN 0-201-73484-2. 
  2. Veldhuizen, Todd (June 1995). "Expression Templates". http://ubiety.uwaterloo.ca/~tveldhui/papers/Expression-Templates/exprtmpl.html. Retrieved 2009-01-09.