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)

    Our national experience in Americanizing millions of Europeans whose chief wish was to become Americans has been a heady wine which has made us believe, as perhaps no nation before us has ever believed, that, given the slimmest chance, all peoples will pattern themselves upon our model.
    Ruth Benedict (1887–1948)