Templates + Rant on Template Substitution Errors
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=pNEy9GJ1KIY
Templates allow you to write functions and classes that work the same way on different types. For example, the vector class works the same way no matter if you're making a vector of ints, chars, or whatever. You use the angle brackets to specify what type of vector it is.
One of the worst things in C++ though are the errors you get when templates are used.
Other Videos By Bill Kerney
2022-03-23 | Analyzing Science Papers |
2022-03-21 | Hash Tables |
2022-03-21 | Algorithmic Bias / The Scientific Method |
2022-03-18 | C++ Sets/Maps/Unordered Sets/Unordered Maps, Chrono, GTest TDD |
2022-03-18 | Social Issues in Computer Science II: Race and Ethnicity |
2022-03-16 | GDB - The GNU Debugger |
2022-03-16 | Social Impact of Computer Science |
2022-03-16 | Linear Transformation Matrix Math |
2022-03-14 | Debugging |
2022-03-14 | Cognitive Biases Part III |
2022-03-11 | Templates + Rant on Template Substitution Errors |
2022-03-11 | Cognitive Biases II |
2022-03-09 | Deleting from a BST / Shell Scripting / Applying for a Job |
2022-03-09 | Privacy, Cognitive Biases I |
2022-03-09 | Radial Damage weapons |
2022-03-09 | Barycentric Coordinates + Z-Buffering |
2022-03-07 | Binary Search Trees II |
2022-03-07 | Fallacies Part IV - |
2022-03-02 | Fallacies Part III |
2022-03-01 | Animating a Character in Unreal Engine using Mixamo |
2022-02-28 | Big O (Part II) + Binary Search Trees |
Tags:
csci 41
templates
concepts
generic programming