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)
“America is the worlds living myth. Theres no sense of wrong when you kill an American or blame America for some local disaster. This is our function, to be character types, to embody recurring themes that people can use to comfort themselves, justify themselves and so on. Were here to accommodate. Whatever people need, we provide. A myth is a useful thing.”
—Don Delillo (b. 1926)
“His talent was as natural as the pattern that was made by the dust on a butterflys wings. At one time he understood it no more than the butterfly did and he did not know when it was brushed or marred. Later he became conscious of his damaged wings and of their construction and he learned to think and could not fly any more because the love of flight was gone and he could only remember when it had been effortless.”
—Ernest Hemingway (18991961)