how we are calculating this capacity for a particular vector of size n? is this capacity also defined for other data structure like array or map?
Didn't get the difference between capacity and size of vector
hi @mayank1777_337eb24d905e7306 cap is overall how many it can hold, and size if currently how many elements are there, nope not for others as such not used but u can make an array of 1000 cap and keep only 1 element so the concept can be used