Which of the STL containers store the elements contiguously in adjacent memory locations)?
(A) std::vector
(B) std::list
(C) std::map
(D) std::set
Answers
Answered by
3
Explanation:
The STL standard associative containers (set, multiset, map, multimap) allow access to elements using a key:
For set and multiset element is its own key.
For map and multimap elements are of type pair<const Key, T>. ...
set and map contain at most one element for each key.
Similar questions