6 May
2013
6 May
'13
3:40 p.m.
On Monday 06 May 2013 17:35:56 Christof Donat wrote:
Hi,
The basic idea is: Given you have a string and an instance of a dictionary, you can: 1) check if the string is already in the dictionary. 2) Add the string to the dictionary and return the dictionary entry (if the string is already present, return existing entry).
[...]
Maybe I misunderstood the concept. I think you are looking for std::setstd::string.
...or std::map/std::unordered_map, perhaps.