I know, it’s been a while since the last time I published something newbies-friendly on my blog. The main reason is that most of my readers are either experienced devs or from C background having modest C++ encounters. But while programming in C++ you need a completely different mindset as both C and C++ belong to different programming paradigm. I always strive to show them a better way of doing things in C++. Anyway, I found the topic which is lengthy, reasonably complex (at least it was for me), newbies-friendly as well as energizing for experienced folks (if Modern C++ jargon, rules, and features added) i.e. C++ Template.
I will start with a simple class/function template and as we move along, it will increase the complexity. And also cover the advanced topics like the variadic template, nested template, CRTP, template vs fold-expression, etc. But, yes! we would not take deeper dive otherwise this would become a book rather than an article.
I know, it’s been a while since the last time I published something newbies-friendly on my blog. The main reason is that most of my readers are either experienced devs or from C background having modest C++ encounters. But while programming in C++ you need a completely different mindset as both C and C++ belong to different programming paradigm. I always strive to show them a better way of doing things in C++. Anyway, I found the topic which is lengthy, reasonably complex (at least it was for me), newbies-friendly as well as energizing for experienced folks (if Modern C++ jargon, rules, and features added) i.e. C++ Template.
I will start with a simple class/function template and as we move along, it will increase the complexity. And also cover the advanced topics like the variadic template, nested template, CRTP, template vs fold-expression, etc. But, yes! we would not take deeper dive otherwise this would become a book rather than an article. […]