Curiously recurring template pattern: Difference between revisions

Content deleted Content added
m minor tweaks
m removed spurious comma
Line 1:
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 Coplien{{ref|Coplien}}, who had observed it in some of the earliest [[C++]] template code.
 
==Example==