Solved

As of C++11, You Can Ask a Vector or Deque

Question 11

Multiple Choice

As of C++11, you can ask a vector or deque to return unneeded memory to the system by calling member function shrink_to_fit. This requests that the container reduce its capacity to the number of elements in the container. According to the C++ standard, implementations can ignore this request so that they can perform implementation-specific optimizations.


A) minimize_memory
B) shrink_to_fit
C) reduce_capacity
D) squeeze_to_size

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions