🛠️ Steven Gong

Search

SearchSearch
  • Template Programming
  • Related

Feb 24, 2025, 1 min read

Template (C++)

Template Programming

Template programming is super useful, but when to use it?

I do get confused sometimes on whether I should use template programming as opposed to inheritance.

https://stackoverflow.com/questions/7264402/when-to-use-template-vs-inheritance

Inheritance provides runtime abstraction. Templates are code generation tools.

Most of my notes are in template.

Related

  • Inheritance

Graph View

Backlinks

  • Template (C++)

Created with Quartz, © 2025

  • Blog
  • LinkedIn
  • Twitter
  • GitHub