TEMPLATES in Modern C++

  Рет қаралды 25,986

cazz

cazz

Жыл бұрын

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

Пікірлер: 73
@Entropytheory
@Entropytheory Жыл бұрын
Honestly, your C++ videos are genuinely amazing
@zxuiji
@zxuiji Жыл бұрын
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 :)
@SownJevan
@SownJevan 9 ай бұрын
These CPP videos are just mind-blowing.
@dntsleepray
@dntsleepray Жыл бұрын
im a CS student learning c++ and I also love csgo. your channel is about to become my favorite thing ever
@daiki-starsation
@daiki-starsation Жыл бұрын
Nice video as always man! Keep up the great work!
@mist9385
@mist9385 Жыл бұрын
great job as always💯
@budgetarms
@budgetarms Жыл бұрын
C++ is indeed a complex *langauge*
@cazz
@cazz Жыл бұрын
i can't spell ok :(
@Dulge
@Dulge Жыл бұрын
Once again, great video Cazz
@EternalNetzah
@EternalNetzah Жыл бұрын
Really good video with great introduction, explanation and examples. You're doing an amazing job!
@cazz
@cazz Жыл бұрын
Thank you 🥹
@smithyisonline
@smithyisonline Жыл бұрын
Keep it up cazz 🦾 very helpful
@SurflFilms
@SurflFilms 4 ай бұрын
this needs more views
@whorls3732
@whorls3732 Жыл бұрын
cant wait for the more in-depth kernel video
@jin-yw4tb
@jin-yw4tb Жыл бұрын
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
@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
@iiferedoncXclan Жыл бұрын
@@devonharvey8414 it will be
@devonharvey8414
@devonharvey8414 Жыл бұрын
@@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
@theraxy
@theraxy Жыл бұрын
keep it up bro!
@grenadier4702
@grenadier4702 Жыл бұрын
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
@alexisrodriguez7127
@alexisrodriguez7127 Ай бұрын
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
@user-lg7td1he3s
@user-lg7td1he3s Жыл бұрын
wow i did not know templates existed until now lol i think i need to watch more videos on c++
@ZealanTanner
@ZealanTanner Жыл бұрын
I’ve never even touched c++ but I think I understood most of what the video was about
@notnightsky
@notnightsky Жыл бұрын
Good video
@mafriese5
@mafriese5 Жыл бұрын
Your new style of videos and your way of explaining programming are really outstanding and easy to understand! Keep on the good work!
@pressthebuttonplz6121
@pressthebuttonplz6121 Жыл бұрын
New video let’s gooooooo
@daniyalhussain5231
@daniyalhussain5231 10 ай бұрын
Please make a mastering C++ playlist for us.
@Finkelfunk
@Finkelfunk Жыл бұрын
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
@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
@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.
@-uz
@-uz Жыл бұрын
please continue these videos😘😍😍😍
@arta6183
@arta6183 Жыл бұрын
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
@gigachad8810 Жыл бұрын
note that python also has some operations on different types (e.g 5 * "a" == "aaaaa")
@gigachad8810
@gigachad8810 Жыл бұрын
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
@fangornthewise Жыл бұрын
I'm a beginner but i'm pretty sure compilers will give you a warning if you're making any "unsafe conversions"
@SophiaNhya
@SophiaNhya 7 ай бұрын
Explain const, constexpr, and other types of const
@lostspace2580
@lostspace2580 Жыл бұрын
Yo could you make a dll injection vid please 🙏
@rndtrash
@rndtrash Жыл бұрын
0:03 complex langauge ☠️
@cazz
@cazz Жыл бұрын
spelling error in the first 10 seconds 💀 God that sucks :(
@rndtrash
@rndtrash Жыл бұрын
@@cazz oh well, shit happens. that' quite clamplicated
@harshitjoshi3082
@harshitjoshi3082 Жыл бұрын
Variable templates, class templates, function templates
@thedebapriyakar
@thedebapriyakar Жыл бұрын
amazing video man
@gagankamra4439
@gagankamra4439 Жыл бұрын
👏👏
@pabloqp7929
@pabloqp7929 Жыл бұрын
Fastest like this week 👍
@andso7068
@andso7068 Жыл бұрын
So it's like the auto keyword but with functions?
@fogy5909
@fogy5909 Жыл бұрын
cazz, how you learned c++
@polarrbtw
@polarrbtw 11 ай бұрын
where should we learn C++
@ZainBhaiiii
@ZainBhaiiii Жыл бұрын
Next video: *How to extract the AIMBOT memory value of a battle royal game in Cheat Engine* .... Please please please its my humble request.😔
@Dorukphodokles
@Dorukphodokles Жыл бұрын
Perfect video.
@cazz
@cazz Жыл бұрын
thanks
@AetherSerenity
@AetherSerenity 2 ай бұрын
whats the difference between "template" and "template"?
@blocks4857
@blocks4857 Ай бұрын
No difference
@chavo6613
@chavo6613 Жыл бұрын
Cazz, can you make tutorials to hack the game Rust?
@Skeleton99998
@Skeleton99998 Жыл бұрын
Can i hack games with lua ?
@cow6194
@cow6194 Жыл бұрын
do mobile ios games please
@b213videoz
@b213videoz Жыл бұрын
Haha! And this is difficult? I mean the syntax seems far more coherent and easy to follow than Java's generics
@abhijitatwal6791
@abhijitatwal6791 Жыл бұрын
he dont miss 🔥🔥🔥
@sledgex9
@sledgex9 Жыл бұрын
IIRC, SFINAE may be considered as an outdated technique now that "concepts/constraints" are available in C++20.
@cazz
@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
@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
@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
@sustrackpointus8613
@sustrackpointus8613 Жыл бұрын
Rust == zero cost abstraction, just saying PS i use rust btw PPS great vid
@cazz
@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!
@bluewalldiscord
@bluewalldiscord Жыл бұрын
third first
@h3reux665
@h3reux665 Жыл бұрын
first because im cool
@riiterlean.3385
@riiterlean.3385 Жыл бұрын
cAn i HaCk FoRtNitE WiTh tHis????
@cazz
@cazz Жыл бұрын
This is the best & most UNDETECTED way of hacking the Fortnight 💯 💯
@riiterlean.3385
@riiterlean.3385 Жыл бұрын
@@cazz DAAAAAAAAAAAAMN
@ikategame
@ikategame Жыл бұрын
first
@cazz
@cazz Жыл бұрын
You were first. Can confirm 💯
@ikategame
@ikategame Жыл бұрын
@@cazz is this sarcasm
@cazz
@cazz Жыл бұрын
@@ikategame Nope. I'm dead serious.
CONSTANTS in C++
8:31
cazz
Рет қаралды 24 М.
Why You NEED a DRIVER (for hacking games)
8:03
cazz
Рет қаралды 436 М.
How to bring sweets anywhere 😋🍰🍫
00:32
TooTool
Рет қаралды 46 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 29 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 280 М.
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 786 М.
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 254 М.
HOW ESPs WORK (for game hackers)
7:05
cazz
Рет қаралды 134 М.
Inline Functions: inline, crossinline, and noinline
11:59
Dave Leeds
Рет қаралды 3,3 М.
Class Templates | C++ Tutorial
12:48
Portfolio Courses
Рет қаралды 43 М.
You Should Learn C++ (for hacking games)
6:11
cazz
Рет қаралды 451 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,5 МЛН
how NASA writes space-proof code
6:03
Low Level Learning
Рет қаралды 2,1 МЛН