Tags

#Static-Polymorphism

1 post

Low-Latency Systems Development #8 22 min read

CRTP and Static Polymorphism

The base class writes the flow and the subclass fills in the details: virtual functions pick the subclass at run time, CRTP at compile time. What you save is more than one indirect jump: the call inlines completely and the object …