No video

Template Metaprogramming: Type Traits (part 1 of 2) - Jody Hagins - CppCon 2020

  Рет қаралды 64,155

CppCon

CppCon

Күн бұрын

Пікірлер: 42
@motbus3
@motbus3 3 жыл бұрын
Good talk. C++ is cool. Lots of cool functionalities and yet the basics are advanced and everything is looking like witchery
@DalasYoo
@DalasYoo 2 жыл бұрын
This should be the MUST WATCH tutorial for template metaprogramming. Very helpful to get the overview.
@perfumedsea
@perfumedsea 3 жыл бұрын
Extremely helpful. Very well prepared slides with colors and boxes. Hope you could prepare some more general templates programming videos.
@andraantariksa4027
@andraantariksa4027 3 жыл бұрын
CppCon 2014: Walter E. Brown "Modern Template Metaprogramming: A Compendium" - Part 1 : kzfaq.info/get/bejne/d9NinNZjtqnaqI0.html - Part 2 : kzfaq.info/get/bejne/l5Z2n8x83MnbiHk.html
@letsbegin_staytrue
@letsbegin_staytrue 11 ай бұрын
long overdue in learning type traits. Thanks a lot for this intro.😄
@ecosta
@ecosta 3 жыл бұрын
Really cool stuff. I wish I had that talk years ago.
@eLBehmo
@eLBehmo 3 жыл бұрын
A good example for adding specializations is std::numeric_limits
@rastaarmando7058
@rastaarmando7058 2 жыл бұрын
That is undefined behaviour.
@yuanjunren5220
@yuanjunren5220 Жыл бұрын
Very helpful. Thx for sharing.
@simonfarre4907
@simonfarre4907 3 жыл бұрын
What I like about constexpr is that essentially, we can have a constexpr function return values of different types, thus making it kind of a meta function, right? Used it just last week, where inside the function, I have a "if constexpr(...) {} else {}" where the two different branches return different types, thanks to the auto keyword in the function signature.
@OGdoCavaco
@OGdoCavaco 4 ай бұрын
Thanks Jody
@rostislavstelmach9168
@rostislavstelmach9168 3 жыл бұрын
Great talk!! Thank you very much!
@Sergei_Sai
@Sergei_Sai 3 жыл бұрын
Big thanks, it very helpful for me.
@child_of_god_
@child_of_god_ 3 жыл бұрын
I've been programming with assembler and turbo pascal since 87 and been using c++ since 98, and since template metaprogramming was first introduced until now, I've been avoiding it successfully. so disliked it. MFC is not helping either by making things so easy in the conventional class programming. Now I have to learn it since I'm using Boost, and watching these series is really helpful
@dekadebashish
@dekadebashish 3 жыл бұрын
Great intro to type manipulation using templates
@Jacob011
@Jacob011 2 жыл бұрын
This is nowhere near as introductory as I would have hoped. A lot of the examples need to be explained way way more . Like the integral_constant at 27:27. Using integral_constant within the definition of integral_constant just gets glossed over. Unbelievable!
@TrueWodzu
@TrueWodzu 2 жыл бұрын
I do agree with you. This was crazy, after watching 48 minutes of the video I still don't understand the usefulness of this. Practical examples were missing!
@haykanushkhachaturian
@haykanushkhachaturian 2 жыл бұрын
Interesting!! Thank you
@CppCon
@CppCon 2 жыл бұрын
Glad you liked it!
@hamed9327
@hamed9327 2 жыл бұрын
excellent explanation!
@CppCon
@CppCon 2 жыл бұрын
Glad it was helpful!
@origamibulldoser1618
@origamibulldoser1618 3 жыл бұрын
How do you deal with increased compile times as a result of template usage?
@sundareswaransenthilvel2759
@sundareswaransenthilvel2759 3 жыл бұрын
Thanks very much!
@ahmadalastal5303
@ahmadalastal5303 2 жыл бұрын
Awesome talk!! loved it so much
@ricardomonicat7564
@ricardomonicat7564 3 жыл бұрын
Great talk! Thank you very much.
@CppCon
@CppCon 3 жыл бұрын
Glad it was helpful!
@k6l2t
@k6l2t 3 жыл бұрын
Holy moly at 40:53 ... he tried SO HARD to explain true_type to the chat, and I really feel like the wording of that explanation was WAY more confusing than it should have been... "It's true that it's true if the true_type is true" 😵
@Moriadin
@Moriadin 2 жыл бұрын
true
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
I should've just stick with template " class ClassName { ...};"
@glugofernando
@glugofernando 3 жыл бұрын
good tutorial
@lawrencaclemens2854
@lawrencaclemens2854 3 жыл бұрын
thank you!!!
@CppCon
@CppCon 3 жыл бұрын
Welcome!
@anatheistsopinion9974
@anatheistsopinion9974 3 жыл бұрын
Interesting
@longdao953
@longdao953 Жыл бұрын
Thanks
@childhood1888
@childhood1888 2 жыл бұрын
So I went and watched Dr. Brown video and now I am facing the delimma, do I need to watch this one?
@lexshardaduriz1036
@lexshardaduriz1036 3 жыл бұрын
Excellent :)
@Jacob011
@Jacob011 2 жыл бұрын
13:31 Why on Earth do you have IntIdentity::value, when your static member is called my_value ????
@IshakHeor
@IshakHeor 3 жыл бұрын
Am I missing something? I can not use the "auto " in the templates
@_supervolcano
@_supervolcano 3 жыл бұрын
I recognize that I am five months late with this reply, but you were likely using an older version of c++. Auto was introduced with c++11, and expanded with c++14. Maybe expanded again with c++17, who the hell even knows.
@yuanjunren5220
@yuanjunren5220 Жыл бұрын
This is introduced in C++17, and you can find it out using keyword "non-type template parameter type deduction".
@yupeng8847
@yupeng8847 11 ай бұрын
After watching the whole video, I still don't get it.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 12 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 164 МЛН
Constructors Are Broken
18:16
Logan Smith
Рет қаралды 106 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
A Firehose of Rust, for busy people who know some C++
1:24:12
Jack O'Connor
Рет қаралды 82 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН