Here is my code
#include <iostream>
using namespace std;
int main()
{
std::map<std::string, std::string> mp;
mp["abb"] = "foo";
mp["Abc"] = "foo";
mp["aba"] = "foo";
for (std::map<string, string>::iterator it = mp.begin(); it != mp.end(); ++it)
std::cout << it->first << " => " << it->second << '\n';
}
I want my output print sort base on alphabet case insensitive like:
aba => foo
abb => foo
Abc => foo