C++ Function Templates

  Рет қаралды 13,319

Creel

Creel

Күн бұрын

Пікірлер: 27
@micosair
@micosair 9 жыл бұрын
This guys has such an Australian accent that a kangaroo jumped out from my screen.
@WhatsACreel
@WhatsACreel 9 жыл бұрын
+micosair Classic!
@AshAs3xandch0c0late
@AshAs3xandch0c0late 9 жыл бұрын
+micosair hahahaha I really like him :D
@traderdox
@traderdox 5 жыл бұрын
Dude, your videos are amazing. Please keep making more.
@mikicerise6250
@mikicerise6250 3 жыл бұрын
"This won't be on your exam" - if you only knew what our exams are like! xD Thanks, mate! Your videos are gold. :)
@abdulwaheed6151
@abdulwaheed6151 5 жыл бұрын
You are good man and your voice reminds me of Aragon of middle earth.... Thank you
@WhatsACreel
@WhatsACreel 5 жыл бұрын
Hahaha, possibly the best thing anybody ever said to me! Thanks for watching brus, have a good one :)
@davidecalaminici2937
@davidecalaminici2937 6 жыл бұрын
Very nice tutorial. One of the best teacher around :-)
@leonhrad
@leonhrad 9 жыл бұрын
Unfortunately there are many different cases in templates, where type deduction is different, and the behaviour is often not what you'd expect. Scott Meyers has a great talk on this, called "Type deduction and why you care", and I really think it's worth knowing about that when using templates.
@zenwaichi3587
@zenwaichi3587 8 жыл бұрын
I really love your style, you can perceive the preparation and work you put in your videos. Is there any chance you will make a new version of asm tutorials/serie? The old makes me cringe too much to follow it(audio/video/*shame*length)
@binlu3977
@binlu3977 4 жыл бұрын
Sorry, I cannot find the function _Is_numeric in the head file , is it due to the update of the library?
@AnubhabHaldarChronum
@AnubhabHaldarChronum 9 жыл бұрын
Why does the template exe size matter? Suppose I had to define an int Swap, a float and a double Swap, I'd have 3 Swaps which the compiler would have to compile. If I wrote a template, and used int, float and double, it would still have to compile 3 Swaps. But then, it'll only make new datatype compilations for every new datatype used, which the programmer would do if it were done the way of overloading functions. So why does the template generate a larger exe?
@WhatsACreel
@WhatsACreel 9 жыл бұрын
+Anubhab Haldar You're right, it makes very little difference. I think template code is actually slightly smaller than lots of overloaded functions! I just wanted to point out that the function is not free. The compiler writes it for us. Thanks for watching and asking a great question!
@epickittylover489
@epickittylover489 9 жыл бұрын
Hey whats a creel im aussie and im a big fan!
@WhatsACreel
@WhatsACreel 9 жыл бұрын
+epic_kitty_lover489 Cheers kitty!
8 жыл бұрын
Great video, thanks.
@carlinconnell7715
@carlinconnell7715 9 жыл бұрын
Would have been cool to see some varidic templates.
@NinjaDoge
@NinjaDoge 7 жыл бұрын
very helpful.
@andyandrw
@andyandrw 6 жыл бұрын
You make me laugh with your comments!! :DDD
@syntaxed2
@syntaxed2 7 жыл бұрын
Codephile Dundee! :D
@WhatsACreel
@WhatsACreel 7 жыл бұрын
Hahaha, nice!
@jeffvenancius
@jeffvenancius Жыл бұрын
It's almost like a macro(?)
@greywolf424
@greywolf424 9 жыл бұрын
So this is the same as Java generics
@AlessioSangalli
@AlessioSangalli 3 жыл бұрын
I believe Java generics were implemented 10-15 years after C++ templates
@lifelonglearner4254
@lifelonglearner4254 9 жыл бұрын
dude templates a so awful, awful to debug, slows compiler... C++ template syntax is horrible, with all sorts of notorious problems with angle brackets and typename and other issues..Modern languages are so poorly designed that they hinder you more than they help when you are trying to actually program at a high level if you care about what the results are at the low level, which I do.
C++ 11: Range Based For Loops
18:50
Creel
Рет қаралды 4,8 М.
C++ Bit Fields
30:01
Creel
Рет қаралды 15 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
TEMPLATES in Modern C++
9:31
cazz
Рет қаралды 33 М.
Templates in C++
17:58
The Cherno
Рет қаралды 606 М.
Top 10 Craziest Assembly Language Instructions
15:19
Creel
Рет қаралды 462 М.
C++ Unions
32:39
Creel
Рет қаралды 9 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 841 М.
Maps in C++ (std::map and std::unordered_map)
30:00
The Cherno
Рет қаралды 227 М.
Assembly Language Misconceptions
18:13
Creel
Рет қаралды 105 М.
Class Templates | C++ Tutorial
12:48
Portfolio Courses
Рет қаралды 57 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН