In the generic programming/TMP world what exactly is a model / a policy and a "concept" ?

Posted by Hassan Syed on Stack Overflow See other posts from Stack Overflow or by Hassan Syed
Published on 2010-02-06T15:49:01Z Indexed on 2010/05/15 20:04 UTC
Read the original article Hit count: 191

I'd like to know the precise yet succinct definitions of these three concepts in one place. The quality of the answer should depend on the following two points.

  1. Show a simple code snippet to show how and what the concept/technique is used for.
  2. Be simple enough to understand so that a programmer without any exposure to this area can grasp it.

Note:

There are probably many correct answers since each concept has many different facets. If there are a lot of good answers I will eventually turn the question into CW and aggregate the answers.

-- Post Accept Edit --

Boost has a nice article on generic programming concepts

© Stack Overflow or respective owner

Related posts about templates

Related posts about metaprogramming