Overloading Function Templates | C++ Tutorial
Vložit
- čas přidán 7. 08. 2024
- How to overload function templates in C++ to combine the benefits of function overloading and function templates. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!
You explain very clearly and go straight to the point, also your pronunciation and speaking speed is very good. The video is not too long, which is great. Thank you very much.
You're very welcome Eduardo, and thank you for sharing this positive feedback! :-)
This channel is pure gold: bite-sized (or dare I say byte-sized!) tutorials, a very clear voice (that's really important) and on point pedagogy!
Thank you so much! I am hoping to learn C++ "fast" coming from a Julia and C background.
You’re welcome I’m really happy you’re enjoying the channel and video format! :-)
Very clear and straight to the point
very helpful video, great job!
Thank you Vishesh, I'm really glad that you found the video helpful! :-)
Thank you...Very clear...🙏
You're welcome, I'm glad you found it clear! :-)
Since it's generic, what would happen if I send as a parameters things that didn't make sense like things I can't add? it's flexible but it seems like it could allow unvalid input, should it be any error handling inside the template function to see if it makes sense for the type being used?
Great question Brandon! :-) If the operation is not supported, than the code will not compile. The compiler will be able to see that we are trying to use a type that does not support the add operation, for example, and it will let us know.
best
Thank you! 😀