No video

STL std::deque | Modern Cpp Series Ep. 120

  Рет қаралды 2,693

Mike Shah

Mike Shah

Күн бұрын

►Full C++ Series Playlist: • The C++ Programming La...
►Find full courses on: courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Lesson Description: In this lesson I give you an introduction to the std::deque (pronounced "deck") data structure which is a double ended queue. deque's are particularly useful if you want the same functionality as a vector, but know you are going to primarily do lots of insertions at the front or end of the data structure. I'll cover how the data structure might be implemented as well in this video.
►KZfaq Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah....

Пікірлер: 13
@mrdebug6581
@mrdebug6581 26 күн бұрын
bare minimum, but complete for a (first) use ... thank you for the series 👏
@MikeShah
@MikeShah 26 күн бұрын
@@mrdebug6581 cheers!
@robertstrickland9722
@robertstrickland9722 Жыл бұрын
I've definitely been mis-pronouncing it as "D-Q" haha. Another great video, thanks Mike!
@qcnck2776
@qcnck2776 Жыл бұрын
And I've been saying D-E-Q (double-ended queue)
@MikeShah
@MikeShah Жыл бұрын
@@qcnck2776 @robertstrickland9722 I suspect there will be folks who also use "D-Q" and will know exactly what you're talking about which is the important part :)
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
Another great lesson👏🏽🙏🏽❤️
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@mohsenzare2511
@mohsenzare2511 Жыл бұрын
I just learn a lot from you Thanks man for your great channel
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@codigo-nodosyvfx
@codigo-nodosyvfx Жыл бұрын
Very useful information, great video.
@MikeShah
@MikeShah Жыл бұрын
Cheers!
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
Hello Mike. Thanks for this awesome series. Some clarifications on std::deque: it supports constant-time random access to its elements, much like an array or a std::vector. This is accomplished by using a dynamic array of pointers, each of which points to a block of elements. By doing a division and a modulo operation on an index, it can locate the block and element corresponding to that index. Unlike std::vector but similar to std::list, the elements of a std::deque are not stored in a contiguous block of memory. Instead, they are divided into multiple blocks. This has several benefits, such as avoiding the need to reallocate and copy all elements when the std::deque grows, which improves performance for certain operations. is that correct?!
@MikeShah
@MikeShah Жыл бұрын
Sounds good to me!
STL std::set | Modern Cpp Series Ep. 121
24:15
Mike Shah
Рет қаралды 3,5 М.
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 11 МЛН
std::deque In C++
12:35
CppNuts
Рет қаралды 30 М.
" Free Pascal: Past, Present and Future" by Detlef D. Overbeek & Mattias Gaertner
46:24
IPC (International Pascal Congress)
Рет қаралды 929
Back to Basics: Classic STL - Bob Steagall - CppCon 2021
1:01:31
STL std::list | Modern Cpp Series Ep. 118
33:48
Mike Shah
Рет қаралды 4,2 М.
C++ Weekly - Ep 278 - `emplace_back` vs `push_back`
15:31
C++ Weekly With Jason Turner
Рет қаралды 28 М.