After this class, you should be able to:
set
: (i) insert
, (ii) erase
, (iii) find
, (iv) begin
, and (v) end
.
map
: (i) insert
, (ii) erase
, (iii) find
, (iv) operator[ ]
, (v) begin
, and (vi) end
.
set
and map
.
set
. How will you define the <
operator (post your answer on the discussion board)? Compare the time taken against the time required to store it in a BST.
(key, value)
pairs into an STL map
. Insert the same pairs into a BST. Compare the time taken for searching for elements in the map against that in the BST.