Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Jun 2007
Offline Last Active Apr 14 2015 06:38 PM

#5122471 C++ templates, are they worth it?

Posted by on 09 January 2014 - 06:04 PM

You should not stop learning C++. Go for templates:

  • Templates allow generic programming
  • Templates are the base for many useful C++ idioms (an example of list)
  • Templates allow generic meta-programming
  • Templates are type-safe
  • Templates allow static code inspection (see SFINAE)
  • Templates represent a powerful concept that helps fighting DRY violations and refactor code
  • Templates are evaluated by the compiler not at run-time
  • The use of templates is fun and can lead you to many interesting code design problematic
  • Many high quality code architectures use templates (C++ standard library for instance)
  • ...