Multiple ChoiceIntermediate 45s
Virtual dispatch vs CRTP static polymorphism
Which is the primary advantage of CRTP over virtual functions?
Options
- 1Static dispatch enabling inlining, no vtable indirection
- 2It allows runtime type changes, swapping behavior per object
- 3It removes the need for templates, adding classes without recompiles
- 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.