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:
“All right, so there he is, our representative to the world, Mr. Western Civilization, in codpiece and pantyhose up there on the boards, firing away at the rapt groundlings with his blank verses, not less of a word-slinger and spellbinder than the Bard himself and therefore not to be considered too curiously on such matters as relevance, coherence, consistency, propriety, sanity, common decency.”
—Marvin Mudrick (19211986)
“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)
“For the man who should loose me is dead,
Fighting with the Duke in Flanders,
In a pattern called a war.
Christ! What are patterns for?”
—Amy Lowell (18741925)