What is the curiously recurring template pattern (CRTP)?
In short, CRTP is when a class A has a base class which is a template specialization for the class A itself. E.g. template <class T> class X{…}; class A : public X<A> {…}; It is curiously recurring, isn’t it? 🙂 Now, what does this give you? This actually gives the X template the ability … Read more