Self-test questions
For multiple choice questions, choose all options that apply:
The
ordered_non_unique
index on Boostmulti_index_container
has the semantics of:a.
std::set
b.
std::multiset
c.
std::unordered_set
d.
std::unordered_multiset
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
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>>