Jump to content

  • Log In with Google      Sign In   
  • Create Account

a.lasram

Member Since 18 Jun 2007
Offline Last Active Dec 10 2014 09:36 PM

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

Posted by a.lasram 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)
  • ...



PARTNERS