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.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


b. shrink_to_fit

Computer Science & Information Technology

You might also like to view...

If you want a class that implements the Set interface and do not need any methods beyond those in the Set interface, you can use the concrete class:

a. Vector b. LinkedList c. HashSet d. TreeSet

Computer Science & Information Technology

According to Bohm and Jacopini, which of the following does not follow structured programming?

a) Stacked building blocks b) Nested building blocks c) Overlapping building blocks d) Invisible building blocks

Computer Science & Information Technology

When using a filter, records that do not match the criteria in the selected field are ________

A) deleted B) compressed C) grayed out D) hidden

Computer Science & Information Technology

CSS was developed due to the demand for greater control of Web pages and to add more formatting abilities

Indicate whether the statement is true or false

Computer Science & Information Technology