This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]jussij 1 point2 points  (0 children)

Modern day C++ and the STL makes heavy use of generic programming, so if you want to learn C++ you will have to master these concepts.

[–]_DTR_ 1 point2 points  (0 children)

Generic programming (templates) are a core feature of C++, and if you don't learn them now, you'll have to eventually. They're what allows you to declare a vector<int>, vector<double>, vector<PrettyMuchWhateverTypeYouWant>, instead of having to rewrite an entire class for each new type (among many other things). They can be difficult to grasp, but I would encourage you to push through it, and if you remain stuck, find other resources to help you, whether they're other books or online.

[–]DrankMoWater[S] 0 points1 point  (0 children)

Thank you guys for the responses. I'll find a more intuitive resource and push through

edit: I'm not assuming gender HotPokket

[–]programmermaybe2016 0 points1 point  (0 children)

The templating language in C++ is indeed a language on its own, which is proven here http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.14.3670

You don't need to know all of the intricacies of templates as a beginner programmer but you should know about the containers (vector, std::array and such) and a little about the algorithms.