Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C++ cpp-containers-library cpp-vector

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...
C C++ cpp-algorithm-library

Common Subtleties in  Vector STLs

Prerequisite – Vector Basics Following are some important points that can save time on little things in an interview or an important coding contest. vector &...
C C++ Sorting

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...
C C++ cpp-algorithm-library

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...
C C++ Sorting

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...
C C++ Sorting

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...
C++ cpp-vector STL

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 <iostr...
C++ cpp-advanced CPP-Library

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...
C++ STL STL

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...
C++ CPP-Library cpp-vector

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...

Subscribe to Our Newsletter