3 ms·
Virtual methods are runtime polymporphism. Templates are compile time polymorphism, and therefore typically are faster (more inlining + avoiding virtual functio
by cherryteastain 2y ago
Virtual methods are runtime polymporphism. Templates are compile time polymorphism, and therefore typically are faster (more inlining + avoiding virtual function call).
- pjmlp 2y agoNo need for macros in compile time polymorphism.