STL std::vector | Modern Cpp Series Ep. 116

  Рет қаралды 3,803

Mike Shah

Mike Shah

Күн бұрын

Пікірлер: 36
@waldek4798
@waldek4798 8 ай бұрын
I just came here after reading the definition of std::vector from that site. I think that it is not detailed enough (the documentation), glad I found your channel.
@MikeShah
@MikeShah 8 ай бұрын
Cheers, thank you for the kind words!
@andrewgannon2820
@andrewgannon2820 6 ай бұрын
Mike, Your videos are exceptional. I thoroughly enjoy using your content to improve my programming skills. Thank you!
@MikeShah
@MikeShah 6 ай бұрын
Cheers, thank you for the kind words Andrew!
@MyWTFName
@MyWTFName Жыл бұрын
Would be interesting if you could compare the different containers/data structures and quick scenarios on when to use them. Vectors, Arrays, Associative Arrays, std::map, etc that makes other programming languages for productive for programmers.
@MikeShah
@MikeShah Жыл бұрын
Yup, this will be after we cover most of the containers :) Cheers!
@qcnck2776
@qcnck2776 Жыл бұрын
Appreciate showing the use of mixing and matching various components like span. Would be great to see more of those. And the connection to C. There is a fair amount of C in the embedded world, and adding C++ may be very helpful.
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@minecraftcookie2929
@minecraftcookie2929 8 ай бұрын
it was a good tutorial thanks
@MikeShah
@MikeShah 8 ай бұрын
Cheers!
@__hannibaal__
@__hannibaal__ Жыл бұрын
Make OnlyOneElementVector : vector { } ;by des-enable functions of growth and allocations; we manipulate just like owner … i just want to make some think very mad😅. I love the STL programmer the way they making a best code from generic algorithm and Methode.
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
Thanks for the great and detailed explanations. I am preparing for job interviews and I am sure these video series on STL are gonna help me out a lot. I also love that idea of implementing vector data structure ourselves from scratch.
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@joebosah2727
@joebosah2727 Жыл бұрын
Thanks Nicely explained Happy Sunday
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@joebosah2727
@joebosah2727 Жыл бұрын
After watching the Spanish youngster Carlos Alcaraz on ATF Wimbledon today, decided to come back to keep in tune and brush up. Great stuff and without denigrating anyone “ Your KZbin is also an adjunct well packaged English Language lesson”. You never used emplace() function during the STL container lessons. Is it unsafe?
@QWin-ir6yq
@QWin-ir6yq 5 ай бұрын
Great video! You mention that you don’t prefer a vector of pointers. Can you please explain why?
@MikeShah
@MikeShah 5 ай бұрын
I should specify a vector of raw pointers (e.g. std::vector collection;>. The reason is because the ownership is not clear whether the vector owns these pointers or not -- if a vector gets copied for example and the copy gets destroyed, it's unclear if that's the right behavior. Vector of uniq_ptr is preferred
@menachemlevi
@menachemlevi 10 ай бұрын
amazing teacher
@MikeShah
@MikeShah 10 ай бұрын
Cheers!
@shaileshdubey7197
@shaileshdubey7197 Жыл бұрын
Sir your channel is seriously underrated..🙏
@MikeShah
@MikeShah Жыл бұрын
Cheers, thank you for the kind words 🙏
@blaisofotso3439
@blaisofotso3439 Жыл бұрын
Hallo Mike, great video. WOuld you please make a video serie expalining APIs , how they work and how to imlement them. thank you
@MikeShah
@MikeShah Жыл бұрын
Noted!
@blaisofotso3439
@blaisofotso3439 Жыл бұрын
ja, please make a video on implementing a vector from scratch, that would help with understanding how the vector class works
@MikeShah
@MikeShah Жыл бұрын
Noted! Cheers!
@codigo-nodosyvfx
@codigo-nodosyvfx Жыл бұрын
Great video
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@dogdog5994
@dogdog5994 Жыл бұрын
I suggest timestamps for any video over 10 minutes in length. It's useful for when you don't have the time to watch a whole video. :)
@MikeShah
@MikeShah Жыл бұрын
Folks should watch the whole thing 😇(But noted :) )
@__hannibaal__
@__hannibaal__ Жыл бұрын
Hi good morning;
@MikeShah
@MikeShah Жыл бұрын
Morning!
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
@16:35 we are invalidating iterator I guess. I used the code below and it worked but i needed to remove '++it' as erase method is going to move iterator to the next element in the vector: for (auto it = vect.begin(); it != vect.end();) { std::cout
@MikeShah
@MikeShah Жыл бұрын
As soon as we modify the container structure we have invalidated our iterator (or iterators) :) We should probably immediately break out of the loop to be safe. We'll look more closely however on how to handle this soon!
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
@@MikeShah Awesome! Thanks.
@MikeShah
@MikeShah Жыл бұрын
@@thestarinthesky_ Cheers!
STL std::deque  | Modern Cpp Series Ep. 120
28:43
Mike Shah
Рет қаралды 3,1 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 81 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,5 МЛН
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 144 М.
Understanding C++ Vector (Dynamic Arrays)
1:14:34
pikuma
Рет қаралды 23 М.
STL std::list | Modern Cpp Series Ep. 118
33:48
Mike Shah
Рет қаралды 5 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 818 М.
STL std::map  | Modern Cpp Series Ep. 126
36:13
Mike Shah
Рет қаралды 4 М.
STL std::set | Modern Cpp Series Ep. 121
24:15
Mike Shah
Рет қаралды 4,1 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 850 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН