std::vector (C++)

std::vector is a resizable array from the C++ standard library. It stores elements of one type in contiguous memory and can grow or shrink at runtime.

Welcome to LearnCodingFast — free, interactive programming lessons covering Python, JavaScript, Java, C++, C#, SQL, HTML/CSS, React, AI and more. Every course is hands-on with examples you can run in your browser.

Loading interactive version…