TEMPLATES in Modern C++
Templates are some of the most powerful and misunderstood parts of C++! Please enjoy the video and look forward to more...
💎 Source code is available for my Patrons!
/ cazzwastaken
💎 Join our community over on Discord!
/ discord
→ GitHub: github.com/cazzwastaken
→ Instagram: / cazzwastaken
→ Twitter: / cazzwastaken
→ Email: cazzwastaken@gmail.com
→ Donate: www.paypal.com/donate/?hosted...
📝Resources 📝
→ Visual Studio: visualstudio.microsoft.com/
→ Inline Page: en.cppreference.com/w/cpp/lan...
⚡See More ⚡
→ Learn Game Hacking: • How to LEARN HACKING
→ Reverse Engineering: • Learn Reverse Engineer...
→ Chams: • REAL CSGO CHAMS - DRAW...
→ CreateMove: • Hook CreateMove From S...
→ Internal Menu: • IMGUI INTERNAL DIRECTX...
→ Aimbot: • MAKE AIMBOT IN 10 MINUTES
Пікірлер: 74
Honestly, your C++ videos are genuinely amazing
Fun fact, templates are possible even in C89, I'm actually using them to transform my custom library into something more maintainable than what I had before after realising how to produce debuggable templates via #include, the thing that was treated as a nuisance before (being included each time #include was used rather than just once) turned out to be the key to templates in C89 :)
These CPP videos are just mind-blowing.
im a CS student learning c++ and I also love csgo. your channel is about to become my favorite thing ever
Nice video as always man! Keep up the great work!
C++ is indeed a complex *langauge*
@cazz
Жыл бұрын
i can't spell ok :(
great job as always💯
Once again, great video Cazz
Keep it up cazz 🦾 very helpful
Really good video with great introduction, explanation and examples. You're doing an amazing job!
@cazz
Жыл бұрын
Thank you 🥹
One thing I hate about templates is it is counter intuitive to how we learn c++. Specifically we are taught to separate the declaration from the implementation to keep things organized but with templates this cant easily be done with out explicit template instantiation or some weird trampoline header
this needs more views
cant wait for the more in-depth kernel video
i dont know a good way to start learning c++ but your videos definitely seem like an invaluable asset that ill need once i start understanding the basics.
@devonharvey8414
Жыл бұрын
Yea I’ve been learning C++ for a week and some change and I feel like this will be very useful later on in my programming career
@iiferedoncXclan
11 ай бұрын
@@devonharvey8414 it will be
@devonharvey8414
11 ай бұрын
@@iiferedoncXclan yesss cause I love C++, it’s so fun and cool, just wish I had more project ideas to work on for my current skill level
SFINAE is actually not that hard to understand. VERY simplified example: Let's assume we have an overloaded template function called "add()" and a regular function with the same name. We call the add-function with parameters that cannot be used in the template version (think concatenating strings versus adding integers for instance). This should usually give us a compile error because the template is not able to be resolved, despite the template being a generic. In this case template substitution failed, but it is not an error since we have an overload resolution for the function.
@user-dh8oi2mk4f
Жыл бұрын
Wouldn't the template add function on its own handle the strings and integers just fine, since templates are fully resolved at compile time?
@Finkelfunk
Жыл бұрын
@@user-dh8oi2mk4f To be fair my example was a bit bad. In general SFINAE is usually applied to types and objects. Let's say we have an add function that takes a regular type T and an add function that takes an object F::num. By calling add(10) we would get a compile time error because int::num doesn't exist. The compiler is able to recognize the overload though and generate proper code.
keep it up bro!
wow i did not know templates existed until now lol i think i need to watch more videos on c++
One of the best features of any language. Sadly, there's no templates in C and we have to write our own ones which are not ideal
Please make a mastering C++ playlist for us.
0:03 complex langauge ☠️
@cazz
Жыл бұрын
spelling error in the first 10 seconds 💀 God that sucks :(
@rndtrash
Жыл бұрын
@@cazz oh well, shit happens. that' quite clamplicated
Good video
Explain const, constexpr, and other types of const
Your new style of videos and your way of explaining programming are really outstanding and easy to understand! Keep on the good work!
I’ve never even touched c++ but I think I understood most of what the video was about
Yo could you make a dll injection vid please 🙏
New video let’s gooooooo
So it's like the auto keyword but with functions?
That's kinda interesting. I like the way rust handles generics way more tho. also surprised me that c++ just straight up implicity casts floats to ints lol, that's probably caused some headaches
@fangornthewise
Жыл бұрын
I'm a beginner but i'm pretty sure compilers will give you a warning if you're making any "unsafe conversions"
please continue these videos😘😍😍😍
Python is not weakly typed, but strongly and dynamically. JavaScript is weakly typed. Weakly typed means that you can perform operations on two types which are not the same: JavaScript: 0 + "a"
@gigachad8810
Жыл бұрын
note that python also has some operations on different types (e.g 5 * "a" == "aaaaa")
Variable templates, class templates, function templates
can you cheat in game on macbook
whats the difference between "template" and "template"?
@blocks4857
Ай бұрын
No difference
amazing video man
👏👏
where should we learn C++
Fastest like this week 👍
Can i hack games with lua ?
Next video: *How to extract the AIMBOT memory value of a battle royal game in Cheat Engine* .... Please please please its my humble request.😔
Perfect video.
@cazz
Жыл бұрын
thanks
cazz, how you learned c++
Cazz, can you make tutorials to hack the game Rust?
he dont miss 🔥🔥🔥
Haha! And this is difficult? I mean the syntax seems far more coherent and easy to follow than Java's generics
do mobile ios games please
third first
IIRC, SFINAE may be considered as an outdated technique now that "concepts/constraints" are available in C++20.
@cazz
Жыл бұрын
I agree, it's just a matter of compiler support at the moment. MSVC has had full C++20 support for a while now at least. Also education, it's hard to find consumable videos about advanced C++ topics. It's gonna be a while before concepts and constraints become a part of the mainstream C++ world :crying:
@sledgex9
Жыл бұрын
@@cazz Yes, and SFINAE is kinda hard to explain in an easy to digest video. Unless, the viewer knows a lot about C++ already.
@cazz
Жыл бұрын
@@sledgex9 Absolutely. You require a certain amount of experience with the language before you can even begin to grasp why they exist / why you would ever need to use them 😆 it makes it difficult to make an 'easy' video about
Rust == zero cost abstraction, just saying PS i use rust btw PPS great vid
@cazz
Жыл бұрын
C++ is also supposed to have zero cost abstractions. That is one of the core principals behind the language. The problem is, you have to exhibit a really deep understanding of C++ for it to actually have zero cost abstractions. For example, classes in C++ are not literally zero-cost because of the hidden 'this' pointer, but if you understand that and you understand there is no other way of going about it (for C ABI compatability) then you realize that it's a necessary cost for the abstraction. The same goes for Virtual Methods and countless other "hidden" parts of C++. Thanks for comment and thanks for the compliment, have a great day!
first because im cool
first
@cazz
Жыл бұрын
You were first. Can confirm 💯
@ikategame
Жыл бұрын
@@cazz is this sarcasm
@cazz
Жыл бұрын
@@ikategame Nope. I'm dead serious.
cAn i HaCk FoRtNitE WiTh tHis????
@cazz
Жыл бұрын
This is the best & most UNDETECTED way of hacking the Fortnight 💯 💯
@riiterlean.3385
Жыл бұрын
@@cazz DAAAAAAAAAAAAMN