Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Vector-Dynamic Array - Making Data Structures in C++

The Cherno via YouTube

Overview

Learn how to implement a vector/dynamic array data structure in C++ in this comprehensive 45-minute tutorial. Explore key concepts including static arrays, reallocation, copying, moving, pushback operations, index operators, and vector class implementation. Dive into advanced topics such as placeback, moving values, move destroy, variadic templates, and memory management. Gain practical insights on building, debugging, and optimizing your custom vector implementation while understanding crucial C++ concepts like destructors and memory blocks.

Syllabus

Intro
Static Array
Reallocate
Copy
Move
Pushback
Index Operator
Vector Class
Placeback
Vector
Moving Values
Move Destroy
Place Back
Variatic Template
Build Error
Destructor
Popback
Advanced Tip
Whats Next
The Bug
Adding a Memory Block
Deleting Memory Blocks
Removing Destructor
Testing Vector
Outro

Taught by

The Cherno

Reviews

Start your review of Vector-Dynamic Array - Making Data Structures in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.