Examlex

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.


Definitions:

Wind Power

The process of converting wind energy into electricity using wind turbines.

Hydroelectric Plants

Facilities that produce electricity by using water flow to drive turbines, often located at dams in rivers or streams.

Switzerland

A country in Central Europe known for its mountainous landscape, neutral policy, and high standard of living.

Norway

A Scandinavian country known for its mountains, fjords, and deep coastal inlets, as well as a high standard of living and strong emphasis on environmental conservation.

Related Questions