Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

# Vector in C++ STL

Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatic...

# Common Subtleties in  Vector STLs

Prerequisite &#x2013; Vector Basics Following are some important points that can save time on little things in an interview or an important coding contest. vector &...

# Sorting 2D Vector in C++ Set 3 (By number of columns)

We have discussed some of the cases of sorting 2D vector in below set 1 and set 2. Sorting 2D Vector in C++ | Set 1 (By row and column) Sorting 2D Vector in C++ | Set...

# Ways to copy a vector in C++

In case of arrays, there is no much choice to copy an array into other, other than iterative method i.e running a loop to copy each element at respective index. But V...

# Sorting Vector of Pairs in C++ Set 2 (Sort in descending order by first and second)

We have discussed some of the cases of sorting vector of pairs in below set 1. Sorting Vector of Pairs in C++ | Set 1 (Sort by first and second) More cases are discus...

# Sorting 2D Vector in C++ Set 2 (In descending order by row and column)

We have discussed some of the cases of sorting 2D vector in below set 1. Sorting 2D Vector in C++ | Set 1 (By row and column) More cases are discussed in this article...

# 2D vector in C++ with user defined size

A 2D vector is a vector of vector. Like 2D arrays, we can declare and assign values to 2D matrix // C++ code to demonstrate 2D vector #include &lt;iostr...

# vector erase() and clear() in C++

Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatic...

# Passing vector to a function in C++

When we pass an array to a function, a pointer is actually passed. When a vector is passed to a function, a copy of the vector is created. For example, we can see bel...

# vector::empty() and vector::size() in C++ STL

Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatica...