Curiously recurring template pattern: Difference between revisions

Content deleted Content added
General form: Copyedit: simplify link to static polymorphism
In other languages: Added Java comparable classes as example.
Line 92:
==In other languages==
 
The CRTP makes an appearance in the [[Java language|Java programming language]] standard library where the [[Enum]] class is defined as <code>Enum&lt;T extends Enum&lt;T&gt;&gt;</code>. Java programmers use the CRTP in practice when they write a comparable class: <code>class X implements Comparable&lt;X&gt;</code>.
 
==See also==