sub string of vector c++

C++
std::vector<unsigned char> data(&request[MSG_START_INDEX], &request[request.size()]);
Source

Also in C++: