STL std::map | Modern Cpp Series Ep. 126

preview_player
Показать описание

►Lesson Description: In this lesson I give you a tour of the std::map. std::map is an associative and ordered container for storing keys and values. In general you will get logarithmic performance using this data structure for insertion, removal, and updates. I'll show you how to iterate through the map several different ways, some tips on 'using' for creating your maps, and how to create a custom comparator if you use a custom key.

►Please like and subscribe to help the channel!
Рекомендации по теме
Комментарии
Автор

Man, you are criminally underrated. Wishing you a lot of success.

willadem
Автор

I'm going through the STL series rn and I just wanted to say thanks, these videos are super helpful!!

nicolaschan
Автор

Mike, I really appreciate seeing the non-trivial uses. Few online examples cover anything more than just a rehash of what the basic definition states. And it is always good to see the places where your code doesn't compile on the first pass: really helpful to those of us learning the quirks of the language😅. While it may add a few seconds to the video, it adds miles to troubleshooting.

qcnck
Автор

@16:50 is it Ok to use negative numbers for types that is unsigned long int?

thestarinthesky_
Автор

Excellent video again! Would love to see a series on streams, especially with binary data!

robertstrickland
Автор

Thanks Mike for these great STL series. I am learning a lot. I just have a question: if i have a vector of size n and want to create a std::map from this vector, would that be o(log(n))*n?!

thestarinthesky_
Автор

New standarts of C++ become more and more ASCii art.

edkachalov
Автор

Quintessential Prof, Thanks a lot.
From the above, is Set, Map without value?

joebosah
Автор

Hello Mike! Nice vibe on your videos, thank you! Btw, I tried understanding why the member operator< didn't work for you, but couldn't come up with any explanation. I had no problems with both a member operator< and a friend one 🤔.

AndrePereira-sx
Автор

how this working : mymap["edge1"] = Edge(0, 0 ) ; // for me this is giving error, means there should be constructor ? need your help ...

nagenHARP
Автор

Would you please make a video on structured bindings? thank you. 😍

thestarinthesky_