Making a CString map case insensitive
I've tried to figure this out, but so far I haven't succeeded. I have a program that uses CStrings, and at one point there's a definition of a map: std::map<CString, CUser>
Somewhere else in the program the map is being iterated. I want to make the map case insensitive so it will output every CString in the correct lexicographic order, no matter what case it's in.
So when definining the map I now put std::map<CString, CUser, class Cmp = NoCase<CString>>. However I don't know how to define a lesser than compare operator for CStrings.
I never used C-style strings before so I'm in the need of some help on how to solve this.
Thanks a lot if you can help me out,