Skip to main content

One doc tagged with "static-polymorphism"

View all tags

CRTP (Curiously Recurring Template Pattern)

CRTP is a template pattern where a class Derived inherits from a template base class Base, passing itself as a template argument. This enables compile-time polymorphism without virtual functions.