Hello.
I've just discovered that I didn't think a cunning plan all the way through.
I've got a grid with a bunch of columns and rows holding CStrings. What I'm doing is trying to filter the grid to only display certain strings. The user selects a location in the grid, and all the rows with the same string in the same column are filtered from the grid.
I've got that working. Mostly.
I've got a map using the CString entry to be filtered out as the key, and the column number as the value. This works fine and dandy, and lets me take back filters if necessary without reloading the entire grid's contents.
The problem is: I can get the same string in two columns, and the code is written such that it won't allow the same key to be filtered twice.
This seemed smart at the time.
Now, I've just realized that there may be cases when the user wants several (probably " ") strings filtered out, but they will be prevented from doing so by the code.
At this point, I'm thinking a multimap would be better, because I think that a multimap would allow several instances of " " to be entered as a key to several columns.
True?
If so, how in blazes does one know if the results of multimapname.find("Whatevah") will give me access to the correct value (ie, column) I want to check?
I haven't adapted this program for multimap yet; I'm just trying to figure out how it would work if I could use the multimap container.
Thanks in advance.