C++ FUNCTIONS (2020) - What are generic functions and templates? PROGRAMMING TUTORIAL

preview_player
Показать описание
Generic programming is used to increase the efficiency of the code. The advantage of writing generic code is code reusability (which means that code that was written once can be used multiple times) and avoiding function overloading.
In this video I'm explaining generic functions and templates.

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
It is a powerful, secure text editor designed specifically for programmers.

However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Related videos:

Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

CodeBeauty
Автор

One of the best c++ tutorials on youtube. You amazing explain!

lukaskocman
Автор

One of the best and easiest definition of references ever! Dry, to the point. No fluff.

renefuller
Автор

I just ran into an issue on this one where I defined my swap function with all lowercase (since functions are camel case and classes are camel starting with an upper, so I thought you made a mistake). Turns out there's a built in swap function that's already generic (and it was getting called without prepending std:: since I included the std namespace globally). So when I used the generic type in my function definition it thought I was overloading it to be generic AGAIN so it had no clue which one to use... Interesting little bug that sent me down a rabbit hole lol

Daniel-clhj
Автор

as a software engineer who has learnt C++ before I found your explanation amazing.Keep it up.

khalidben
Автор

I really wish you were our college professor 😭 you'd honestly save an entire class and help them pass instead of the professors we have that drive us to insanity and failure. i thank you from the bottom of my heart

madamadadane
Автор

So many people cannot explain this subject well and you make it look like a child's play toy.

thank you

egyptianstrm
Автор

I started learning C/C++ 3 years ago based on several other tutorials and i can say your tutorials are so much better that i can not help watching them all even though i already know most things you explain...which is pretty amazing i think!
Speaking about functions, maybe you could also insert a video about callback functions in this playlist.

MrBPeet
Автор

I love to watch your videos . You're awesome .

murtazaali
Автор

I cant believe I did not know about this channel until now. Thank you for making high quality and easy to follow videos

peri
Автор

If anyone is getting an error with this, it's probably because you named the "swap()" function in all lowercase. There is already a "swap()" function defined in the std library that you imported using the namespace so it will cause an ambiguous function overload error.

StabbyMacStabStab
Автор

10k coming faster than the speed of light! Great Content as always!

legolas
Автор

Hi, can you please do a video about "template within a template?" Something like this: template <template<class> class H, class S>, I've always had trouble reading and understanding it. Thanks~

alexandrachyu
Автор

Hi Saldina! You created excellent C++ videos but no UTF-8 string handling. Please make one.

bodnarsa
Автор

I must thank you very-very much! Great explanation and really helpful! Keep going on.

svglx
Автор

Einstein quote: “If you can't explain it simply, you don't understand it well enough.”...you make it all so simple Saldana....

jeetenzhurlollz
Автор

Incredible easy explai, thanks a lot.

temirkhanamanbaev
Автор

excellent explanation, please i have a problem and i don't know how to do it, and it would be a great idea for a video ! if you can help !

MrSofianeDz
Автор

You are so crisp in your explanations and presentation that I feel yours are one of the best c++ tutorials on YouTube. I would recommend these videos to everyone. Will you please make some videos on software architecture for budding coders. What I mean, how should one start developing a software/application and organize his/her code?

learnfromatharv
Автор

can you please make more vedios on c++ templates deeply please. as its a important concept for competitive programming..thank you

zonaedahmed