C++ Idioms

 http://cplusplus.bordoon.com/cplusplusadvice.html
https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Print_Version

  • RTTI
  • Virtual functions
  • shared_ptr etc
  • Templates
  • Virtual inheriting
  • Variadic macros

Also useful:

  • Attributes (it depends on your compiler)
  • Variadic templates
  • Variadic functions
  • Constexpr (sorting in compile time / calculating hash of strings etc... but the latter is related to the last section)
  • Lambdas

Useful for brainfucking or in special cases:

  • CRTP
  • SFINAE
  • inable_if (type traits)
  • Foreach macro
  • User-defined literals

  • opaque pointer

    https://akrzemi1.wordpress.com/page/2/

    https://www.ritambhara.in/category/cpp/

Comments

Popular posts from this blog

VECPP.c

Comparision with Quick Sort

Interview questions