Hey guys, I'm just bored sitting in a comp apps class, and I thought of something (just a passing curiosity). Are std::string's very slow compared to simple char*'s?
Code:std::string str = "String"; int res = strcmp(str.c_str(), "ABCD"); char* str2[] = "String"; //Much faster, or neglible? int res2 = strcmp(str2, "ABCD");