Why are the elements in the STL set (and map) kept sorted?

What will be an ideal response?

For efficiency of access to the element, and the efficiency of certain member functions

Computer Science & Information Technology

You might also like to view...

The ________ of a sample is the summation of the squared deviations divided by the amount of the sample (n - 1)

Fill in the blank(s) with correct word

Computer Science & Information Technology

When cells or rows are inserted or deleted in an Excel worksheet, how are cell references affected by the insertion or deletion?

A. Cell references are not affected. B. The user must insert new cell references. C. The user is prompted to enter new cell references. D. Cell references are automatically adjusted.

Computer Science & Information Technology