std::variant

  Рет қаралды 8,518

CopperSpice

CopperSpice

4 жыл бұрын

Website: www.copperspice.com
Downloads: download.copperspice.com
Github: github.com/copperspice
Discussion: forum.copperspice.com

Пікірлер: 23
@cyrilemeka6987
@cyrilemeka6987 7 ай бұрын
Thank you very much❤
@traveladdict8997
@traveladdict8997 11 ай бұрын
Thank you for the intonation and clear presentation
@aniliitb10
@aniliitb10 4 жыл бұрын
I had gone through some tutorials earlier on std::variant but had never met std::monostate and wasn't familiar with non-intuitive behavior in case of array of chars. thanks for another quality tutorial.
@CopperSpice
@CopperSpice 4 жыл бұрын
I think std::monostate is not always part of the discussion. As you saw, it provides a standard compliant way of saying "nothing is here".
@marlowa42
@marlowa42 Жыл бұрын
This is an excellent presentation, thanks very much!
@stormShadow64
@stormShadow64 4 жыл бұрын
My godness, I love you both, great videos, btw both of you have amaizing voice ;)
@CopperSpice
@CopperSpice 4 жыл бұрын
Thank you so much. Comments like this help encourage us to keep producing these videos.
@stormShadow64
@stormShadow64 4 жыл бұрын
@@CopperSpice You are so great... Unlike lot of other online cpp sources, you do keep things simple and concise, most important topics in compressed way, the very great place to learn or rehearse one's knkwledge, wish you the best possible, and waiting impatiently for next video :) greetings from POLAND :)
@CopperSpice
@CopperSpice 4 жыл бұрын
@@stormShadow64, just in case you feel like coming to Wrocław we are presenting a talk at the code::dive conference in November. This will be our first visit to Poland and we are very excited.
@TheMR-777
@TheMR-777 4 жыл бұрын
*Many Thanks* , for such a *Great and Simplified Explanation* of this concept ..! I was searching for any good guide on *std::variant* , but almost no one compared it with unions with such a great precision. Comparing it with unions, with complete detail, was really a good idea! Now, a Programmer can decide, *"which to choose where?"* , which is quite difficult to teach, as a Teacher.
@graham12345dd
@graham12345dd Жыл бұрын
This is a great tutorial ! I'm subscribing! Thank you!
@nicksklenicka8926
@nicksklenicka8926 Жыл бұрын
Thank you!
@JoshFlorii
@JoshFlorii 3 жыл бұрын
I don't know who you are but PLEASE keep this up!!!
@CopperSpice
@CopperSpice 3 жыл бұрын
Thanks for making us laugh, we asked ourselves the same question just the other day. We started the CopperSpice project several years ago as a set of cross platform libraries. It has expanded into DoxyPress and now these videos. Please check out our website, our github repos, and feel free to contact us with any questions.
@experimentalhypothesis1137
@experimentalhypothesis1137 4 жыл бұрын
please make a video on std::invoke, std::visit, std::overload
@userrand4900
@userrand4900 11 ай бұрын
kzbin.info/www/bejne/fHe9fHttn7udo8k mentions that variant would result in a default constructed int with a random value. From experiments using clang, the value is always "0" vs. random. Which one is right?
@fdwr
@fdwr 4 жыл бұрын
13:02 Hmm, I'll never understand why the C++ committee made this interface so awkward to use, rather offering intuitive and discoverable methods. e.g. `std::get(v)` rather than simply `v.get()`, or the very wordy `std::holds_alternative(v)` rather than just `v.is_type()`, or lacking a way to get the index of a given type `v.index_of_type()`... It's fine to have the free functions too (just like std::data, std::begin, std::end...), but it would only help users to have methods that forwarded to the free functions. Until then, we can get tips from videos like this, and I'll use my 'fixed' version :). github.com/fdwr/TextLayoutSampler/blob/master/Common.Variant.h Cheers from Seattle.
@CopperSpice
@CopperSpice 4 жыл бұрын
All we can say is that we agree, the API is a bit awkward and it should be easier to use. We are working on some more examples to present in future videos.
@climatechangedoesntbargain9140
@climatechangedoesntbargain9140 4 жыл бұрын
well, it would not be C++ anymore, would it?
@TheMR-777
@TheMR-777 4 жыл бұрын
@@climatechangedoesntbargain9140 That's why it's in *C++ 17 Standard* . All up to you, whether to use it or not.
@climatechangedoesntbargain9140
@climatechangedoesntbargain9140 4 жыл бұрын
@@TheMR-777 ??
@TheMR-777
@TheMR-777 4 жыл бұрын
@@climatechangedoesntbargain9140 I mean, you can use the previous standards. But ... These features are for the people who already have worked in higher programming languages. They find difficulties while learning C++. For their ease, these features are made public. If I talk about us, we people who wanna be type-specific, we want perfection by any means. Even if have to write more code :), but we want perfection and precision.
std::visit
12:23
CopperSpice
Рет қаралды 7 М.
Constexpr Static Const
19:52
CopperSpice
Рет қаралды 7 М.
Заметили?
00:11
Double Bubble
Рет қаралды 3,5 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 17 МЛН
WHY THROW CHIPS IN THE TRASH?🤪
00:18
JULI_PROETO
Рет қаралды 8 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 24 МЛН
Static Things
10:15
CopperSpice
Рет қаралды 1,6 М.
30. Unions, std::variant
1:42:10
Мещерин Илья
Рет қаралды 3,9 М.
C++ 10. std::variant / std::visit
2:56:37
Лекторий ФПМИ
Рет қаралды 1,8 М.
C++ Weekly - Ep 12 C++17's std::any
18:27
C++ Weekly With Jason Turner
Рет қаралды 58 М.
Futures & Promises
18:00
CopperSpice
Рет қаралды 13 М.
Modern C++ (move semantics, perfect forwarding)
19:49
CopperSpice
Рет қаралды 22 М.
How To Unlock Your iphone With Your Voice
0:34
요루퐁 yorupong
Рет қаралды 20 МЛН
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 9 МЛН
Best Beast Sounds Handsfree For Multi Phone
0:42
MUN HD
Рет қаралды 340 М.
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,5 МЛН
сюрприз
1:00
Capex0
Рет қаралды 1,2 МЛН