Self-test questions
For multiple choice questions, choose all options that apply:
- 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
- What are the main differences between
boost::scoped_ptr
andstd::unique_ptr
?a.
boost::scoped_ptr
does not support move semanticsb.
std::scoped_ptr
has no partial specialization for arraysc.
std::unique_ptr
can be stored in STL containersd.
std::unique_ptr
supports custom deleters - 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.