Intermediate C++ Game Programming Tutorial 14
From Chilipedia
In this tutorial we learn how to make our own goddamn templates. So much power. Drunk with it we are. We also learn about the concept of a "functor" (dumb name, clever idea), which is pretty sweet and an integral part of the standard library.
Topics Covered
- Class
template
- Function
template
- Functors
-
typedef
- Template parameter deduction
Video Timestamp Index
Source Code
Notes
Instead of typedef Vec2_<int> Vei2;
, an alternative syntax is available in C++11 in the form of: using Vei2 = Vec2_<int>;
.
Homework
No homework.