C++ Programming
04-08-2009, 11:23 AM
Hello,
I have a STL map and string values as the key values However recently, i want to search this map as it is like auto-complete ComboBox.
For example,I have keys in the map as such Apple, Pearl, Orange.
When i enter 'A' i want to return Apple from the map.
I know that i can iterate thorough each map object and compare its key, but i think that would inefficient.
Any ideas ?
Bekir.
I have a STL map and string values as the key values However recently, i want to search this map as it is like auto-complete ComboBox.
For example,I have keys in the map as such Apple, Pearl, Orange.
When i enter 'A' i want to return Apple from the map.
I know that i can iterate thorough each map object and compare its key, but i think that would inefficient.
Any ideas ?
Bekir.