Can you use the random_shuffle generic algorithm with a list container? What about a vector container? Why or why not?
Fill in the blank(s) with the appropriate word(s).
The random_shuffle algorithm requires random access iterators. The list doesn’t hve them but the vector does. So random_shuffle does not work with the list container but does with the vector.
Computer Science & Information Technology
You might also like to view...
Which of the following is not a common search operator?
A. ? B. | C. + D. -
Computer Science & Information Technology
In a relational database, you should restrict each position in the table to a single entry, that is, you do not permit multiple entries, often called ____ in the table.
A. anomalies B. tuples C. redundancy D. repeating groups
Computer Science & Information Technology