Answer the following questions true (T) or false (F)

1. The Standard Template Library consists of the containers of various kinds.

2. The STL containers each define iterators appropriate to the internal structure of the container.


1. False
Explanation: Besides the various kinds of containers, there are generic algorithms and iterators that allow generic algorithms to manipulate data in the containers.
2. True
Explanation: The vector has random access iterators that act like pointers (mostly because they are pointers.) The list container (which is a doubly linked list) has iterators that are class objects that overload ++ and -- to get the behavior needed.

Computer Science & Information Technology

You might also like to view...

What is gained by writing an interface to a Queue ADT (Abstract Data Type), as opposed to simply writing a Queue class, to solve a problem.

What will be an ideal response?

Computer Science & Information Technology

Which of these types of memory has no moving parts and is often used to transfer data between digital cameras and personal computers?

A) magnetic memory B) random access memory C) flash memory D) read-only memory

Computer Science & Information Technology

To hear the sound or see the border associated with a mouse-over area, you must be in Slide Show view

Indicate whether the statement is true or false

Computer Science & Information Technology

Identify the letter of the choice that best matches the phrase or definition.

A. The common field in the related table is called a(n) ____ when it is used in a relationship. B. When a field displays a value that is calculated using other fields in the query, it is called a(n) ____. C. A calculation of more than one field is called a(n) ____. D. Menu that opens when you click the arrow on the right side of a field selector. E. When you are viewing a table or query datasheet, you can use the ____ to count the number of values in a column.

Computer Science & Information Technology