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

  • @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
    @SownJevan9 ай бұрын

    These CPP videos are just mind-blowing.

  • @dntsleepray
    @dntsleepray11 ай бұрын

    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!

  • @budgetarms
    @budgetarms Жыл бұрын

    C++ is indeed a complex *langauge*

  • @cazz

    @cazz

    Жыл бұрын

    i can't spell ok :(

  • @mist9385
    @mist9385 Жыл бұрын

    great job as always💯

  • @Dulge
    @Dulge Жыл бұрын

    Once again, great video Cazz

  • @smithyisonline
    @smithyisonline Жыл бұрын

    Keep it up cazz 🦾 very helpful

  • @EternalNetzah
    @EternalNetzah Жыл бұрын

    Really good video with great introduction, explanation and examples. You're doing an amazing job!

  • @cazz

    @cazz

    Жыл бұрын

    Thank you 🥹

  • @alexisrodriguez7127
    @alexisrodriguez712718 күн бұрын

    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

  • @SurflFilms
    @SurflFilms3 ай бұрын

    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

    11 ай бұрын

    @@devonharvey8414 it will be

  • @devonharvey8414

    @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

  • @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.

  • @theraxy
    @theraxy Жыл бұрын

    keep it up bro!

  • @user-lg7td1he3s
    @user-lg7td1he3s Жыл бұрын

    wow i did not know templates existed until now lol i think i need to watch more videos on c++

  • @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

  • @daniyalhussain5231
    @daniyalhussain52319 ай бұрын

    Please make a mastering C++ playlist for us.

  • @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

  • @notnightsky
    @notnightsky Жыл бұрын

    Good video

  • @SophiaNhya
    @SophiaNhya6 ай бұрын

    Explain const, constexpr, and other types of const

  • @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!

  • @ZealanTanner
    @ZealanTanner Жыл бұрын

    I’ve never even touched c++ but I think I understood most of what the video was about

  • @lostspace2580
    @lostspace2580 Жыл бұрын

    Yo could you make a dll injection vid please 🙏

  • @pressthebuttonplz6121
    @pressthebuttonplz6121 Жыл бұрын

    New video let’s gooooooo

  • @andso7068
    @andso7068 Жыл бұрын

    So it's like the auto keyword but with functions?

  • @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"

  • @-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")

  • @harshitjoshi3082
    @harshitjoshi3082 Жыл бұрын

    Variable templates, class templates, function templates

  • @R0NIN69
    @R0NIN69 Жыл бұрын

    can you cheat in game on macbook

  • @AetherSerenity
    @AetherSerenity2 ай бұрын

    whats the difference between "template" and "template"?

  • @blocks4857

    @blocks4857

    Ай бұрын

    No difference

  • @thedebapriyakar
    @thedebapriyakar Жыл бұрын

    amazing video man

  • @gagankamra4439
    @gagankamra4439 Жыл бұрын

    👏👏

  • @polarrbtw
    @polarrbtw11 ай бұрын

    where should we learn C++

  • @pabloqp7929
    @pabloqp7929 Жыл бұрын

    Fastest like this week 👍

  • @Skeleton99998
    @Skeleton99998 Жыл бұрын

    Can i hack games with lua ?

  • @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

  • @fogy5909
    @fogy5909 Жыл бұрын

    cazz, how you learned c++

  • @chavo6613
    @chavo6613 Жыл бұрын

    Cazz, can you make tutorials to hack the game Rust?

  • @abhijitatwal6791
    @abhijitatwal6791 Жыл бұрын

    he dont miss 🔥🔥🔥

  • @b213videoz
    @b213videoz11 ай бұрын

    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

  • @bluewalldiscord
    @bluewalldiscord Жыл бұрын

    third first

  • @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!

  • @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