Self-test questions

For multiple choice questions, choose all options that apply:

  1. What are the Abraham's Exception Safety Guarantees?

    a. Basic, weak, and strong

    b. Basic, strong, and no-throw

    c. Weak, strong, and no-throw

    d. None, basic, and strong

  2. What are the main differences between boost::scoped_ptr and std::unique_ptr?

    a. boost::scoped_ptr does not support move semantics

    b. std::scoped_ptr has no partial specialization for arrays

    c. std::unique_ptr can be stored in STL containers

    d. std::unique_ptr supports custom deleters

  3. Why is boost::shared_ptr heavier than other smart pointers?

    a. It uses a shared reference counter

    b. It supports both copy and move semantics

    c. It uses two allocations per encapsulated object

    d. It is not heavier than other smart pointers ...

Get Learning Boost C++ Libraries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.