char vector to string c++

C++
std::vector<char> input({ 'a', 'b', 'c' });

std::string s(input.begin(), input.end());

Source

Also in C++: