STL set and map question# Programming - 葵花宝典
vi
1 楼
It feels like whereever you need a map, it can be done by a set,
by defining the key of the map as the key for the set, and have
the value of the map as regular data members.
What's the rational to make the difference between the two? Thanks.
by defining the key of the map as the key for the set, and have
the value of the map as regular data members.
What's the rational to make the difference between the two? Thanks.