The first video out of a number of videos about templates. Here we focus on *why* anybody would want to use templates in the first place, leaving the details to what templates do and how to properly use them in C++ to the future videos.
If you want to know *what* templates do under the hood, see this video: [ Ссылка ]
📚 As always, the script to the video lives here: [ Ссылка ]
00:00 - Intro
01:12 - Short intro to templates
02:47 - Function templates
05:33 - Class and struct templates
06:23 - Templates for abstract code design
08:26 - Side note on the strategy design pattern
09:30 - Catching bugs at compile time
10:17 - Compile-time meta-programming
11:46 - Summary
🔗 Some additional links:
- CppReference page on template parameters: [ Ссылка ]
- Google C++ Code Style naming rules: [ Ссылка ]
- Chandler Carruth' talk about nothing being free: [ Ссылка ]
#MadeWithMotionCanvas
![](https://i.ytimg.com/vi/1Mrt1NM3KnI/maxresdefault.jpg)