The curiously recurring template pattern (CRTP) is a C++ idiom in which a class X derives from a class template instantiation using X itself as template argument. The name of this idiom was coined by Jim Coplien, who had observed it in some of the earliest C++ template code as well as in code examples that Timothy Budd created in his multiparadigm language, Leda Multiparadigm programming in Leda..
Read more about Curiously Recurring Template Pattern: General Form, Static Polymorphism, Object Counter, Polymorphic Copy Construction, Pitfalls
Famous quotes containing the words curiously, recurring and/or pattern:
“I can sympathise with peoples pains, but not with their pleasures. There is something curiously boring about somebody elses happiness.”
—Aldous Huxley (18941963)
“Let us think this thought in its most terrible form: existence as it is, without meaning or aim, and yet recurring inevitably, without a finale in nothingnesseternal recurrence.”
—Friedrich Nietzsche (18441900)
“Art is the imposing of a pattern on experience, and our aesthetic enjoyment is recognition of the pattern.”
—Alfred North Whitehead (18611947)