Curiously Recurring Template Pattern, or CRTP, is a design pattern originated in C++ template programming. Its general form is as follows:
template
class Base {
...
};
class Derived : public Base {
...
};Basically, we have a Base template class, and any Derived class will subclass from an instantiation of the Base template class with
(
Read more... )