Curiously Recurring Template Pattern

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 (1921–1986)

    America is the world’s living myth. There’s 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. We’re here to accommodate. Whatever people need, we provide. A myth is a useful thing.
    Don Delillo (b. 1926)

    The worthiest man to be known, and for a pattern to be presented to the world, he is the man of whom we have most certain knowledge. He hath been declared and enlightened by the most clear-seeing men that ever were; the testimonies we have of him are in faithfulness and sufficiency most admirable.
    Michel de Montaigne (1533–1592)