C++ Vector Resizing

Published: 24 September 2024
on channel: C++ Data Structures
359
15

What makes the std::vector different than C++'s built-in arrays and from std::array is the ability to change the size and the capacity. This is all done through vector::reserve(). This video explains how reserve() works and provides pseudocode for the optimal implementation.

You can learn more about the vector and other data structures in C++ Data Structures by James Helfrich: https://he.kendallhunt.com/product/c-...

0:00 Introduction
0:26 Class Diagram
0:56 Size and Capacity
1:51 Demonstration
4:12 Pseudocode for reserve()
5:19 Pseudocode for push_back()
6:22 Conclusion


On this page of the site you can watch the video online C++ Vector Resizing with a duration of hours minute second in good quality, which was uploaded by the user C++ Data Structures 24 September 2024, share the link with friends and acquaintances, this video has already been watched 359 times on youtube and it was liked by 15 viewers. Enjoy your viewing!