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)
“I am a writer and a feminist, and the two seem to be constantly in conflict.... ever since I became loosely involved with it, it has seemed to me one of the recurring ironies of this movement that there is no way to tell the truth about it without, in some small way, seeming to hurt it.”
—Nora Ephron (b. 1941)
“No, I will be the pattern of all patience,
I will say nothing.”
—William Shakespeare (15641616)