Problem

Fill in the blanks in each of the following statements:a) The three styles of container cl...

Fill in the blanks in each of the following statements:

a) The three styles of container classes are first-class containers, _____ and near containers.


b) Containers are divided into four major categories—sequence containers, ordered associative containers, _____ and container adapters.


c) The Standard Library container adapter most closely associated with the first-in, first-out (FIFO) insertion-and-removal discipline is the _____.


d) Built-in arrays, bitsets and valarrays are all _____ containers.


e) A(n) _____ constructor (new in C++ 11) moves the contents of an existing container of the same type into a new container, without the overhead of copying each element of the argument container.


f) The _____ container member function returns the number of elements currently in the container.


g) The _____ container member function returns true if the contents of the first container are not equal to the contents of the second; otherwise, returns false.


h) We use iterators with sequences—these can be input sequences or output sequences, or they can be _____.


i) The Standard Library algorithms operate on container elements only indirectly through _____.


j) Applications with frequent insertions and deletions in the middle and/or at the extremes of a container normally use a(n) _____.


k) Function _____ is available in every first-class container (except forward_l ist) and it returns the number of elements currently stored in the container.


l) It can be wasteful to double a vector’s size when more space is needed. For example, a full vector of 1,000,000 elements resizes to accommodate 2,000,000 elements when a new element is added, leaving 999,999 unused elements. You can use _____ and _____ to control space usage better.


m) As of C++ 11, you can ask a vector or deque to return unneeded memory to the system by calling member function _____.


n) The associative containers provide direct access to store and retrieve elements via keys (often called search keys). The ordered associative containers are multiset, set, _____ and _____.


o) Classes _____ and _____ provide operations for manipulating sets of values where the values are the keys—there is not a separate value associated with each key.


p) We use C++ 11’s auto keyword _____.


q) A multimap is implemented to efficiently locate all values paired with a given _____.


r) The Standard Library container adapters are stack, queue and _____.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 15
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT