Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
STL
1.3K+ articles
CPP-Functions
615+ articles
cpp-vector
375+ articles
cpp-map
287+ articles
CPP-Library
254+ articles
cpp-set
202+ articles
CPP-forward-list
33+ articles
cpp-containers-library
93 posts
Recent Articles
Popular Articles
How to Write Our Own STL Container?
Last Updated: 20 August 2024
The Standard Template Library (STL) in C++ provides us with various data structures and algorithms. We have STL containers like vector, list, map, and set that we commonly...
read more
C++
Picked
STL
cpp-containers-library
Why C++ Containers Don't Allow Incomplete Types?
Last Updated: 05 August 2024
C++ Standard Template Library (STL) provides various containers such as std::vector, std::list, std::map, and more. These containers are essential for managing collections...
read more
C++
Picked
STL
cpp-containers-library
How to Determine if a Type is an STL Container at Compile Time?
Last Updated: 14 August 2024
In C++, Standard Template Library (STL) provides many containers such as std::vector, std::list, std::map, and more. What if we want to write a generic code that behaves d...
read more
C++
Picked
STL
cpp-containers-library
What are the Complexity Guarantees of the Standard Containers?
Last Updated: 12 August 2024
In C++, the Standard Template Library (STL) provides various containers such as std::vector, std::list, std::map, and others, each designed for specific use cases. A very ...
read more
C++
Picked
STL
cpp-containers-library
Vector reserve() in C++ STL
Last Updated: 20 November 2024
In C++, vector reserve() is a built-in function that reserves the memory for at least a specified number of elements in the vector. It changes the capacity of the vector s...
read more
C++
STL
CPP-Functions
cpp-vector
cpp-containers-library
vector swap() in C++
Last Updated: 05 November 2024
In C++, std::vector::swap() is a built-in function used to exchange the contents to two vectors of same type. This function does not copy, move or swap the individual elem...
read more
C++
STL
cpp-vector
cpp-containers-library
Vector emplace() vs insert() in C++
Last Updated: 12 November 2024
In C++, STL vector provides two methods for element insertion at the given position: vector emplace() and vector insert(). Although both methods provide similar functional...
read more
C++
STL
cpp-vector
cpp-containers-library
Multidimensional Vectors in C++
Last Updated: 18 November 2024
A multidimensional vector is a vector of vectors that allows us to create 2D, 3D, or higher-dimensional vectors in a similar way as multidimensional arrays but unlike arra...
read more
C++
STL
cpp-vector
cpp-containers-library
Vector size() in C++ STL
Last Updated: 15 November 2024
In C++, the vector size() is a built-in method used to find the size of a vector. The size of a vector tells us the number of elements currently present in the vector. In ...
read more
C++
STL
CPP-Functions
cpp-vector
cpp-containers-library
Vector back() in C++ STL
Last Updated: 21 November 2024
In C++, the vector back() is a built-in function used to retrieve the last element of the vector. It provides a reference to the last element which allows us to read or mo...
read more
C++
STL
cpp-vector
cpp-containers-library
Vector clear() in C++ STL
Last Updated: 09 April 2025
In C++, vector clear() is a built-in method used to remove all elements from a vector, making it empty. In this article, we will learn about the vector clear() method in C...
read more
C++
STL
cpp-vector
cpp-containers-library
CPP Examples
Vector Operator = in C++ STL
Last Updated: 25 November 2024
In C++, the vector operator = is used to assign the contents of one vector to another. It allows you to copy elements from one vector to another or initialize a vector wit...
read more
C++
STL
cpp-vector
cpp-containers-library
Vector pop_back() in C++ STL
Last Updated: 26 November 2024
In C++, the vector pop_back() is a built-in method used to remove the last element from a vector. It reduces the size of the vector by one, but the capacity remains unchan...
read more
C++
STL
CPP-Functions
cpp-vector
cpp-containers-library
Vector begin() in C++ STL
Last Updated: 26 November 2024
In C++, the vector begin() is a built-in method used to obtain an iterator pointing to the start of the vector. This iterator is used to traverse the vector or perform ope...
read more
C++
STL
cpp-vector
cpp-containers-library
Vector crbegin() in C++ STL
Last Updated: 28 November 2024
In C++, the vector crbegin() is a built-in method used to obtain a constant reverse iterator pointing to the last element of the vector. It is used to mark the starting po...
read more
C++
STL
cpp-vector
cpp-containers-library
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !