vector::capacity() function in C++

In this article, we will discuss about the vector::capacity() function in C++ and why it is essential when working with vectors.

Table of Contents:

Introduction to vector::capacity() functionSyntax and Time Complexity of the vector::capacity() functionExamples1. Introduction to vector::capacity() function

In C++, the vector::capacity() function is a built in function, which simply returns the maximum capacity that is allocated by the vector.

2. Syntax and Time complexity of the vector::capa...
 •  0 comments  •  flag
Share on Twitter
Published on February 16, 2023 19:56
No comments have been added yet.