24.0k views
15 votes
____ returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

User Mayrs
by
6.1k points

1 Answer

12 votes

Answer:

vecCont.capacity() returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

Step-by-step explanation:

Consider the provided information.

vecCont.capacity() is a function that returns the maximum number of elements(without reallocation) that can be inserted into the container.

vecCont.capacity() returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

User Rahul Kalidindi
by
5.9k points