Тёмный

TEMPLATES in Modern C++ 

cazz
Подписаться 145 тыс.
Просмотров 28 тыс.
50% 1

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
→ 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

Опубликовано:

 

12 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 76   
@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 11 месяцев назад
These CPP videos are just mind-blowing.
@daiki-starsation
@daiki-starsation Год назад
Nice video as always man! Keep up the great work!
@dntsleepray
@dntsleepray Год назад
im a CS student learning c++ and I also love csgo. your channel is about to become my favorite thing ever
@mist9385
@mist9385 Год назад
great job as always💯
@VoidloniXaarii
@VoidloniXaarii 18 дней назад
This was great! Looking forward to more modern cpp lessons
@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 🥹
@budgetarms
@budgetarms Год назад
C++ is indeed a complex *langauge*
@cazz
@cazz Год назад
i can't spell ok :(
@smithyisonline
@smithyisonline Год назад
Keep it up cazz 🦾 very helpful
@CoolModderJaydonX
@CoolModderJaydonX 16 дней назад
Keep in mind, with Python, you can actually specify what type a variable, parameter, or function is. For example: a: int = 6 # a is an integer b: str = "Hello!" # b is a string a = b[0] # error def add(a: float, b: float) -> float: return a + b
@cazz
@cazz 16 дней назад
Absolutely. Type hints are one of my favorite additions to Python3. They make using/navigating libraries so much easier, and I make sure to use them everywhere for medium to large projects. I wish they provided a performance increase though... Thanks for the comment and have a great day!
@whorls3732
@whorls3732 Год назад
cant wait for the more in-depth kernel video
@SurflFilms
@SurflFilms 6 месяцев назад
this needs more views
@alexisrodriguez7127
@alexisrodriguez7127 2 месяца назад
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
@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!
@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
@user-lg7td1he3s
@user-lg7td1he3s Год назад
wow i did not know templates existed until now lol i think i need to watch more videos on c++
@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
@notnightsky
@notnightsky Год назад
Good video
@ZealanTanner
@ZealanTanner Год назад
I’ve never even touched c++ but I think I understood most of what the video was about
@daniyalhussain5231
@daniyalhussain5231 Год назад
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.
@andso7068
@andso7068 Год назад
So it's like the auto keyword but with functions?
@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")
@pressthebuttonplz6121
@pressthebuttonplz6121 Год назад
New video let’s gooooooo
@SophiaNhya
@SophiaNhya 9 месяцев назад
Explain const, constexpr, and other types of const
@lostspace2580
@lostspace2580 Год назад
Yo could you make a dll injection vid please 🙏
@-uz
@-uz Год назад
please continue these videos😘😍😍😍
@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"
@thedebapriyakar
@thedebapriyakar Год назад
amazing video man
@TheOneAndOnlyViking
@TheOneAndOnlyViking 4 месяца назад
whats the difference between "template" and "template"?
@blocks4857
@blocks4857 3 месяца назад
No difference
@harshitjoshi3082
@harshitjoshi3082 Год назад
Variable templates, class templates, function templates
@polarrbtw
@polarrbtw Год назад
where should we learn C++
@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
@Skeleton99998
@Skeleton99998 Год назад
Can i hack games with lua ?
@gagankamra4439
@gagankamra4439 Год назад
👏👏
@fogy5909
@fogy5909 Год назад
cazz, how you learned c++
@pabloqp7929
@pabloqp7929 Год назад
Fastest like this week 👍
@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
@chavo6613
@chavo6613 Год назад
Cazz, can you make tutorials to hack the game Rust?
@abhijitatwal6791
@abhijitatwal6791 Год назад
he dont miss 🔥🔥🔥
@b213videoz
@b213videoz Год назад
Haha! And this is difficult? I mean the syntax seems far more coherent and easy to follow than Java's generics
@cow6194
@cow6194 Год назад
do mobile ios games please
@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
@ikategame
@ikategame Год назад
first
@cazz
@cazz Год назад
You were first. Can confirm 💯
@ikategame
@ikategame Год назад
@@cazz is this sarcasm
@cazz
@cazz Год назад
@@ikategame Nope. I'm dead serious.
@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
Далее
CONSTANTS in C++
8:31
Просмотров 25 тыс.
HACKING UNITY GAMES (FOR NOOBS)
16:11
Просмотров 75 тыс.
are "smart pointers" actually smart?
9:44
Просмотров 73 тыс.
Learn Reverse Engineering (for hacking games)
7:26
how Google writes gorgeous C++
7:40
Просмотров 839 тыс.
WHY did this C++ code FAIL?
38:10
Просмотров 241 тыс.
Should you learn C++?? | Prime Reacts
20:29
Просмотров 340 тыс.
You Should Learn C++ (for hacking games)
6:11
Просмотров 456 тыс.
Naming Things in Code
7:25
Просмотров 2 млн