When the last shared_ptr to a resource is destroyed, all weak_ptrs to that resource .

a. are destroyed
b. are set to NULL
c. are not affected
d. can still access the resource


b. are set to NULL

Computer Science & Information Technology

You might also like to view...

Subtractive primary colors are:

a. purple, mauve, blue b. yellow, brown, green c. cyan, magenta, gray d. magenta, cyan, yellow e. yellow, cyan, purple

Computer Science & Information Technology

Which column alias will cause an error?

A) SELECT last_name AS lname FROM employees; B) SELECT last_name AS Last Name FROM employees; C) SELECT last_name "Last Name" FROM employees; D) SELECT last_name lname FROM employees;

Computer Science & Information Technology

In a binary search tree, the elements in the left subtree of the root are __________________ the root element.

a) greater than b) less than c) greater than or equal to d) less than or equal to e) equal to

Computer Science & Information Technology

Make a comparison of the sequences of operations of the transactions T and U and under optimistic concurrency control

What will be an ideal response?

Computer Science & Information Technology