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:

    I can sympathise with people’s pains, but not with their pleasures. There is something curiously boring about somebody else’s happiness.
    Aldous Huxley (1894–1963)

    Let us think this thought in its most terrible form: existence as it is, without meaning or aim, and yet recurring inevitably, without a finale in nothingness—”eternal recurrence.”
    Friedrich Nietzsche (1844–1900)

    Art is the imposing of a pattern on experience, and our aesthetic enjoyment is recognition of the pattern.
    Alfred North Whitehead (1861–1947)