menu-iconExamlexExamLexServices

Discover

Ask a Question
  1. All Topics
  2. Topic
    Computing
  3. Study Set
    C++
  4. Exam
    Exam 23: Boost Libraries, Technical Report 1 and C0x
  5. Question
    When the Last Shared_ptr to a Resource Is Destroyed, All
Solved

When the Last Shared_ptr to a Resource Is Destroyed, All

Question 3

Question 3

Multiple Choice

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

Correct Answer:

verifed

Verified

Related Questions

Q1: A program using Boost.Regex must include the

Q2: C++0x will be<br>A) easier to learn<br>B) better

Q4: Use the weak_ptr member function to create

Q5: The dot character .) matches:<br>A) any visible

Q6: An auto_ptr can manage any:<br>A) dynamically allocated

Q7: The Random library provides:<br>A) pseudo-random number generators<br>B)

Q8: The unordered associative containers use a to

Q9: A declaration allows you to test certain

Q10: Which of the following will not be

Q11: A copy of an auto_ptr:<br>A) shares the

Examlex

ExamLex

About UsContact UsPerks CenterHomeschoolingTest Prep

Work With Us

Campus RepresentativeInfluencers

Links

FaqPricingChrome Extension

Download The App

Get App StoreGet Google Play

Policies

Privacy PolicyTerms of ServiceHonor CodeCommunity Guidelines

Scan To Download

qr-code

Copyright © (2025) ExamLex LLC.

Privacy PolicyTerms Of ServiceHonor CodeCommunity Guidelines