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:
Verified
Q7: The list sequence container does not:
A) Efficiently
Q8: Which of the following is not a
Q9: Which of the following are mutating-sequence algorithms
Q10: Unlike a vector, a deque:
A) Provides efficient
Q11: Class deque provides:
A) Efficient indexed access to
Q13: A Standard Library algorithm cannot:
A) Return an
Q14: The erase member function of class vector
Q15: Which of the following applications would a
Q16: Which of the following is not a
Q17: Which of the following statements is false?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents