Intermediate C++ Game Programming Tutorial 8
std::vector<>: the sexiest of the standard containers. What does it have to do with mathematical vectors? Nothing at all. So why didn't they just name it
std::dynamic_array<>? Good question, good question. Next question. Seriously though,
std::vector<> is the shit and we are going to be using it all the GD time from now on. Get hype.
- Concept of template classes
- Underlying implementation of
- Pointers to
std::vector<>underlying data memory
Video Timestamp Index
Chili recorded some footage where he shows a concrete example of using std::vector<> in the Database code from the Intermediate 4 homework. It was cut from the final video to keep the length under 30 minutes (Ritalin is expensive in some countries ;)), but you can find that footage here: Lost Footage (I8 Vector).
The homework is to modify Poison Snek to use
std::vector<>. You will see the light.