1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
// unordered_multiset::key_eq
#include <iostream>
#include <string>
#include <unordered_set>
int main ()
{
std::unordered_multiset<std::string> myums;
bool case_insensitive = myums.key_eq()("case","CASE");
std::cout << "myums.key_eq() is ";
std::cout << ( case_insensitive ? "case insensitive" : "case sensitive" );
std::cout << std::endl;
return 0;
}
|