Alternatives to Vector in C++

In this article, we have explored the alternatives of Vector in C++ such as:



array
Deque
Linked List
map
multiset

What is Vector ?

Vector is a dynamic array which resizes itself when insertion and deletion operations perform.Insertions are preformed at the end and in deletion when element gets deleted every element move next to the position i-1.


Array

An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same data-type together.Foll...

 •  0 comments  •  flag
Share on Twitter
Published on August 30, 2020 14:13
No comments have been added yet.