便乗質問。これは?
std::string str;
const char* ptr = str.c_str();
char c = *ptr;