Return size of allocated storage
-
length
-
size
-
max_size
-
capacity
D
Correct answer
Explanation
In C++ standard library containers (like std::vector), 'capacity' returns the total number of elements that the container can hold in its currently allocated storage. 'size' returns the number of actual elements, and 'max_size' is the absolute limit.