Book Image

Learning Boost C++ Libraries

By : Arindam Mukherjee
Book Image

Learning Boost C++ Libraries

By: Arindam Mukherjee

Overview of this book

Table of Contents (19 chapters)
Learning Boost C++ Libraries
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Self-test questions


For multiple choice questions, choose all options that apply:

  1. The ordered_non_unique index on Boost multi_index_container has the semantics of:

    a. std::set

    b. std::multiset

    c. std::unordered_set

    d. std::unordered_multiset

  2. Deleting an element in a multi_index_container will only invalidate the iterator to the deleted element, irrespective of the index.

    a. True

    b. False

    c. Depends on the type of index

  3. Which of the following bimap types has semantics equivalent to a multimap<T, U>?

    a. bimap<T, multiset_of<U>>

    b. bimap<multiset_of<T>, U>

    c. bimap<multiset_of<T>, unconstrained_set_of<U>>

    d. bimap<multiset_of<T>, multiset_if<U>>