All challenges
Multiple ChoiceIntermediate 45s

Virtual dispatch vs CRTP static polymorphism

Which is the primary advantage of CRTP over virtual functions?
Options
  1. 1Static dispatch enabling inlining, no vtable indirection
  2. 2It allows runtime type changes, swapping behavior per object
  3. 3It removes the need for templates, adding classes without recompiles
  4. 4It guarantees no code bloat, one shared instantiation per call

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle