>>862
ちなみにmemcpyを使うなら下の書き方かな?

vector<char> v;
string s;
v.resize(s.size());
memcpy(&v[0], s.c_str(), s.size());